Skip to content

Commit 614c9a8

Browse files
committed
Verify test suites load
Fixes #23
1 parent 45f1c5e commit 614c9a8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/DrupalIntegrationTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@ public function testDeprecatedImplements() {
3131
$this->assertEquals('Class Drupal\Core\Entity\EntityManager implements deprecated interface Drupal\Core\Entity\EntityManagerInterface.', $error->getMessage());
3232
}
3333

34+
public function testTestSuiteAutoloading() {
35+
$paths = [
36+
__DIR__ . '/fixtures/drupal/core/tests/TestSuites/FunctionalJavascriptTestSuite.php',
37+
__DIR__ . '/fixtures/drupal/core/tests/TestSuites/FunctionalTestSuite.php',
38+
__DIR__ . '/fixtures/drupal/core/tests/TestSuites/KernelTestSuite.php',
39+
__DIR__ . '/fixtures/drupal/core/tests/TestSuites/TestSuiteBase.php',
40+
__DIR__ . '/fixtures/drupal/core/tests/TestSuites/UnitTestSuite.php',
41+
];
42+
foreach ($paths as $path) {
43+
$errors = $this->runAnalyze($path);
44+
$this->assertCount(0, $errors, $path);
45+
}
46+
}
47+
3448
private function runAnalyze(string $path) {
3549
$rootDir = __DIR__ . '/fixtures/drupal';
3650
$containerFactory = new ContainerFactory($rootDir);

0 commit comments

Comments
 (0)