2019-10-04 22:05:43 +00:00
|
|
|
<?php
|
|
|
|
|
2024-01-15 05:23:28 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2019-10-04 22:05:43 +00:00
|
|
|
namespace Drupal\Tests\TestSuites;
|
|
|
|
|
|
|
|
require_once __DIR__ . '/TestSuiteBase.php';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Discovers tests for the build test suite.
|
2024-02-28 08:17:59 +00:00
|
|
|
*
|
|
|
|
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no
|
|
|
|
* replacement and test discovery will be handled differently in PHPUnit 10.
|
|
|
|
*
|
|
|
|
* @see https://www.drupal.org/node/3405829
|
2019-10-04 22:05:43 +00:00
|
|
|
*/
|
|
|
|
class BuildTestSuite extends TestSuiteBase {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Factory method which loads up a suite with all build tests.
|
|
|
|
*
|
|
|
|
* @return static
|
|
|
|
* The test suite.
|
|
|
|
*/
|
|
|
|
public static function suite() {
|
2020-04-23 16:15:14 +00:00
|
|
|
$root = dirname(__DIR__, 3);
|
2019-10-04 22:05:43 +00:00
|
|
|
|
|
|
|
$suite = new static('build');
|
|
|
|
$suite->addTestsBySuiteNamespace($root, 'Build');
|
|
|
|
|
|
|
|
return $suite;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|