You are here

public function UserTest::indicatorProvider in Freelinking 8.3

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

Provide test parameters for ::testGetIndicator.

Return value

array An array of test parameters.

File

tests/src/Unit/Plugin/freelinking/UserTest.php, line 142

Class

UserTest
Tests the user plugin.

Namespace

Drupal\Tests\freelinking\Unit\Plugin\freelinking

Code

public function indicatorProvider() {
  return [
    [
      'nomatch',
      0,
    ],
    [
      'u',
      1,
    ],
    [
      'user',
      1,
    ],
    [
      'username',
      1,
    ],
    [
      'uid',
      1,
    ],
    [
      'userid',
      1,
    ],
  ];
}