final class FailingTestsTestSuite in Drupal driver for SQL Server and SQL Azure 4.1.x
Same name and namespace in other branches
- 4.2.x dev/TestSuites/FailingTestsTestSuite.php \Drupal\Tests\sqlsrv\TestSuites\FailingTestsTestSuite
- 3.0.x dev/travis/TestSuites/FailingTestsTestSuite.php \Drupal\Tests\sqlsrv\TestSuites\FailingTestsTestSuite
- 3.1.x dev/travis/TestSuites/FailingTestsTestSuite.php \Drupal\Tests\sqlsrv\TestSuites\FailingTestsTestSuite
- 4.0.x dev/travis/TestSuites/FailingTestsTestSuite.php \Drupal\Tests\sqlsrv\TestSuites\FailingTestsTestSuite
Discovers tests for the kernel test suite.
Hierarchy
- class \Drupal\Tests\sqlsrv\TestSuites\FailingTestsTestSuite extends \Drupal\Tests\sqlsrv\TestSuites\CITestSuiteBase
Expanded class hierarchy of FailingTestsTestSuite
File
- dev/
TestSuites/ FailingTestsTestSuite.php, line 10
Namespace
Drupal\Tests\sqlsrv\TestSuitesView source
final class FailingTestsTestSuite extends CITestSuiteBase {
/**
* Factory method which loads up a suite with all core kernel tests.
*
* @return static
* The test suite.
*/
public static function suite() {
$root = self::getDrupalRoot();
$suite = new static('kernel');
$suite
->addFailingTests($root);
return $suite;
}
/**
* Find and add tests to the suite for core and any extensions.
*
* @param string $root
* Path to the root of the Drupal installation.
*/
protected function addFailingTests($root) {
$failing_classes = [];
foreach ($this->failingClasses as $failing_class) {
$filename = $root . $failing_class;
if (file_exists($filename)) {
$failing_classes[] = $filename;
}
}
$this
->addTestFiles($failing_classes);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FailingTestsTestSuite:: |
protected | function | Find and add tests to the suite for core and any extensions. | |
FailingTestsTestSuite:: |
public static | function | Factory method which loads up a suite with all core kernel tests. |