public function ProjectUnitTest::coreVersionProvider in Coder 8.3.x
Same name and namespace in other branches
- 8.3 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 94
Class
- ProjectUnitTest
- Tests that project and version detection works.
Namespace
DrupalPractice\Test\ProjectDetectionCode
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,
],
];
}