BuildTestSuite.php 512 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Drupal\Tests\TestSuites;
  3. require_once __DIR__ . '/TestSuiteBase.php';
  4. /**
  5. * Discovers tests for the build test suite.
  6. */
  7. class BuildTestSuite extends TestSuiteBase {
  8. /**
  9. * Factory method which loads up a suite with all build 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('build');
  17. $suite->addTestsBySuiteNamespace($root, 'Build');
  18. return $suite;
  19. }
  20. }