class KernelTestSuite in Drupal 8
Same name and namespace in other branches
- 9 core/tests/TestSuites/KernelTestSuite.php \Drupal\Tests\TestSuites\KernelTestSuite
Discovers tests for the kernel test suite.
Hierarchy
- class \Drupal\Tests\TestSuites\TestSuiteBase extends \PHPUnit\Framework\TestSuite
- class \Drupal\Tests\TestSuites\KernelTestSuite
Expanded class hierarchy of KernelTestSuite
File
- core/
tests/ TestSuites/ KernelTestSuite.php, line 10
Namespace
Drupal\Tests\TestSuitesView source
class KernelTestSuite extends TestSuiteBase {
/**
* Factory method which loads up a suite with all kernel tests.
*
* @return static
* The test suite.
*/
public static function suite() {
$root = dirname(dirname(dirname(__DIR__)));
$suite = new static('kernel');
$suite
->addTestsBySuiteNamespace($root, 'Kernel');
return $suite;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KernelTestSuite:: |
public static | function | Factory method which loads up a suite with all kernel tests. | |
TestSuiteBase:: |
protected | function | Find and add tests to the suite for core and any extensions. | |
TestSuiteBase:: |
protected | function | Finds extensions in a Drupal installation. | 1 |