comparison core/tests/TestSuites/UnitTestSuite.php @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c75dbcec494b
1 <?php
2
3 namespace Drupal\Tests\TestSuites;
4
5 require_once __DIR__ . '/TestSuiteBase.php';
6
7 /**
8 * Discovers tests for the unit test suite.
9 */
10 class UnitTestSuite extends TestSuiteBase {
11
12 /**
13 * Factory method which loads up a suite with all unit tests.
14 *
15 * @return static
16 * The test suite.
17 */
18 public static function suite() {
19 $root = dirname(dirname(dirname(__DIR__)));
20
21 $suite = new static('unit');
22 $suite->addTestsBySuiteNamespace($root, 'Unit');
23
24 return $suite;
25 }
26
27 }