KernelTestSuite.php 517 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Drupal\Tests\TestSuites;
  3. require_once __DIR__ . '/TestSuiteBase.php';
  4. /**
  5. * Discovers tests for the kernel test suite.
  6. */
  7. class KernelTestSuite extends TestSuiteBase {
  8. /**
  9. * Factory method which loads up a suite with all kernel tests.
  10. *
  11. * @return static
  12. * The test suite.
  13. */
  14. public static function suite() {
  15. $root = dirname(dirname(dirname(__DIR__)));
  16. $suite = new static('kernel');
  17. $suite->addTestsBySuiteNamespace($root, 'Kernel');
  18. return $suite;
  19. }
  20. }