You are here

public function ProjectUnitTest::coreVersionProvider in Coder 8.3

Same name and namespace in other branches
  1. 8.3.x tests/DrupalPractice/ProjectDetection/ProjectUnitTest.php \DrupalPractice\Test\ProjectDetection\ProjectUnitTest::coreVersionProvider()

Data provider for testCoreVersion().

Return value

array<int, array<int, string|int>>

File

tests/DrupalPractice/ProjectDetection/ProjectUnitTest.php, line 95

Class

ProjectUnitTest
Tests that project and version detection works.

Namespace

DrupalPractice\Test\ProjectDetection

Code

public function coreVersionProvider() : array {
  return [
    [
      __DIR__ . '/drupal6/nested/test.php',
      6,
    ],
    [
      __DIR__ . '/drupal7/test.php',
      7,
    ],
    [
      __DIR__ . '/drupal8/test.php',
      8,
    ],
    [
      'invalid',
      8,
    ],
    [
      __DIR__ . '/directory.info/test.php',
      8,
    ],
  ];
}