abstract class UnitTestCase

Provides a base class and helpers for Drupal unit tests.

Hierarchy

  • class \Drupal\Tests\UnitTestCase extends \Drupal\Tests\PHPUnit_Framework_TestCase

Expanded class hierarchy of UnitTestCase

37 files declare their use of UnitTestCase

File

drupal/core/tests/Drupal/Tests/UnitTestCase.php, line 13
Contains \Drupal\Tests\UnitTestCase.

Namespace

Drupal\Tests
View source

Members

Namesort descending Modifiers Type Description Overrides
UnitTestCase::getConfigFactoryStub public function Returns a stub config factory that behaves according to the passed in array.
UnitTestCase::getConfigStorageStub public function Returns a stub config storage that returns the supplied configuration.
UnitTestCase::getInfo public static function This method exists to support the simpletest UI runner. 38
UnitTestCase::randomName public static function Generates a random string containing letters and numbers.