public static function UnitTestCase::getInfo

This method exists to support the simpletest UI runner.

It should eventually be replaced with something native to phpunit.

Also, this method is empty because you can't have an abstract static method. Sub-classes should always override it.

Return value

array An array describing the test like so: array( 'name' => 'Something Test', 'description' => 'Tests Something', 'group' => 'Something', )

38 methods override UnitTestCase::getInfo()
AccessManagerTest::getInfo in drupal/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
This method exists to support the simpletest UI runner.
AddRoleUserTest::getInfo in drupal/core/modules/user/tests/Drupal/user/Tests/Plugin/Action/AddRoleUserTest.php
This method exists to support the simpletest UI runner.
AttributesTest::getInfo in drupal/core/tests/Drupal/Tests/Core/Common/AttributesTest.php
This method exists to support the simpletest UI runner.
BackendChainImplementationUnitTest::getInfo in drupal/core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTest.php
This method exists to support the simpletest UI runner.
BreakpointMediaQueryTest::getInfo in drupal/core/modules/breakpoint/tests/Drupal/breakpoint/Tests/BreakpointMediaQueryTest.php
This method exists to support the simpletest UI runner.

... See full list

File

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

Class

UnitTestCase
Provides a base class and helpers for Drupal unit tests.

Namespace

Drupal\Tests

Code

public static function getInfo() {
  throw new \RuntimeException("Sub-class must implement the getInfo method!");
}