You are here

public function DrupalOrgTest::indicatorProvider in Freelinking 8.3

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

Provide test parameters for ::testGetIndicator.

Return value

array An array of test parameters.

File

tests/src/Unit/Plugin/freelinking/DrupalOrgTest.php, line 184

Class

DrupalOrgTest
Tests the drupalorg plugin.

Namespace

Drupal\Tests\freelinking\Unit\Plugin\freelinking

Code

public function indicatorProvider() {
  return [
    [
      'nomatch',
      [
        'node' => TRUE,
      ],
      0,
    ],
    [
      'nomatch',
      [
        'project' => TRUE,
      ],
      0,
    ],
    [
      'dorg',
      [
        'node' => TRUE,
      ],
      1,
    ],
    [
      'dorg',
      [
        'node' => FALSE,
      ],
      0,
    ],
    [
      'drupalorg',
      [
        'node' => TRUE,
      ],
      1,
    ],
    [
      'drupalo',
      [
        'node' => TRUE,
      ],
      1,
    ],
    [
      'drupalproject',
      [
        'project' => TRUE,
      ],
      1,
    ],
    [
      'drupalp',
      [
        'project' => TRUE,
      ],
      1,
    ],
    [
      'dproject',
      [
        'project' => TRUE,
      ],
      1,
    ],
    [
      'drupalproject',
      [
        'project' => FALSE,
      ],
      0,
    ],
  ];
}