You are here

public function NodeTitleTest::indicatorProvider in Freelinking 4.0.x

Same name and namespace in other branches
  1. 8.3 tests/src/Unit/Plugin/freelinking/NodeTitleTest.php \Drupal\Tests\freelinking\Unit\Plugin\freelinking\NodeTitleTest::indicatorProvider()

Provide strings to test indicator pattern with expected result.

Return value

array An array of test method arguments.

File

tests/src/Unit/Plugin/freelinking/NodeTitleTest.php, line 127

Class

NodeTitleTest
Tests the nodetitle plugin behavior.

Namespace

Drupal\Tests\freelinking\Unit\Plugin\freelinking

Code

public function indicatorProvider() {
  return [
    [
      'ntnomatch',
      0,
    ],
    [
      'nt',
      1,
    ],
    [
      'nodetitle',
      1,
    ],
    [
      'title',
      1,
    ],
  ];
}