You are here

KernelTestSuite.php in Drupal 10

File

core/tests/TestSuites/KernelTestSuite.php
View source
<?php

namespace Drupal\Tests\TestSuites;

require_once __DIR__ . '/TestSuiteBase.php';

/**
 * Discovers tests for the kernel test suite.
 */
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(__DIR__, 3);
    $suite = new static('kernel');
    $suite
      ->addTestsBySuiteNamespace($root, 'Kernel');
    return $suite;
  }

}

Classes

Namesort descending Description
KernelTestSuite Discovers tests for the kernel test suite.