You are here

abstract class CITestSuiteBase in Drupal driver for SQL Server and SQL Azure 4.1.x

Same name in this branch
  1. 4.1.x dev/appveyor/CITestSuiteBase.php \Drupal\Tests\sqlsrv\TestSuites\CITestSuiteBase
  2. 4.1.x dev/travis/CITestSuiteBase.php \Drupal\Tests\sqlsrv\TestSuites\CITestSuiteBase
Same name and namespace in other branches
  1. 4.2.x dev/appveyor/CITestSuiteBase.php \Drupal\Tests\sqlsrv\TestSuites\CITestSuiteBase
  2. 4.2.x dev/travis/CITestSuiteBase.php \Drupal\Tests\sqlsrv\TestSuites\CITestSuiteBase

Base class for Drupal test suites.

Hierarchy

  • class \Drupal\Tests\sqlsrv\TestSuites\TestSuiteBase extends \PHPUnit\Framework\TestSuite

Expanded class hierarchy of CITestSuiteBase

File

dev/travis/CITestSuiteBase.php, line 10

Namespace

Drupal\Tests\sqlsrv\TestSuites
View source
abstract class CITestSuiteBase extends TestSuiteBase {

  /**
   * Regex patterns to split up core Kernel tests.
   *
   * @var array
   */
  protected static $coreKernelPatterns = [
    '[A-Z]',
  ];

  /**
   * Regex patterns to split up core Kernel extensions.
   *
   * @var array
   */
  protected static $coreExtensionPatterns = [
    '[a-g]',
    '[h-q]',
    '[r-z]',
  ];

  /**
   * The number of tests can can run on the CI in the alloted time.
   *
   * Need to ocassionally verify that the array_sum > the total number of
   * tests.
   *
   * @var array
   */
  protected static $functionalSizes = [
    17,
    34,
    25,
    30,
    30,
    25,
    25,
    25,
    30,
    25,
    25,
    15,
    25,
    25,
    25,
    25,
    25,
    25,
    30,
    25,
    25,
    25,
    25,
    25,
    25,
    25,
    25,
    25,
    25,
    25,
    25,
    25,
    25,
    20,
    20,
    25,
    25,
    25,
    25,
    25,
    25,
    25,
    25,
    25,
    25,
    30,
    25,
    25,
    25,
    25,
    25,
    25,
    25,
    10,
    15,
    20,
    25,
    25,
    25,
  ];

}

Members

Namesort descending Modifiers Type Description Overrides
CITestSuiteBase::$coreExtensionPatterns protected static property Regex patterns to split up core Kernel extensions.
CITestSuiteBase::$coreKernelPatterns protected static property Regex patterns to split up core Kernel tests.
CITestSuiteBase::$functionalSizes protected static property The number of tests can can run on the CI in the alloted time.
TestSuiteBase::$failingClasses protected property The failing test files.
TestSuiteBase::addCoreKernelTestsByName protected function Find and add tests to the suite for core and any extensions.
TestSuiteBase::addExtensionTestsBySuiteNamespace protected function Find and add tests to the suite for core and any extensions. 1
TestSuiteBase::addExtensionTestsBySuiteNamespaceAndChunk protected function Find and add tests to the suite for core and any extensions.
TestSuiteBase::findExtensionDirectories protected function Finds extensions in a Drupal installation.
TestSuiteBase::getCoreExtensionSuite public static function Fetch a subset of the Core Extension tests.
TestSuiteBase::getDrupalRoot protected static function Get the path to webroot.