public static function ColorTest::getInfo

Same name in this branch
  1. 8.x drupal/core/tests/Drupal/Tests/Core/Utility/ColorTest.php \Drupal\Tests\Core\Utility\ColorTest::getInfo()
  2. 8.x drupal/core/modules/color/lib/Drupal/color/Tests/ColorTest.php \Drupal\color\Tests\ColorTest::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', )

Overrides UnitTestCase::getInfo

File

drupal/core/tests/Drupal/Tests/Core/Utility/ColorTest.php, line 18
Contains \Drupal\Tests\Core\Utility\ColorTest.

Class

ColorTest
Tests color conversion functions.

Namespace

Drupal\Tests\Core\Utility

Code

public static function getInfo() {
  return array(
    'name' => 'Color conversion',
    'description' => 'Tests Color utility class conversions.',
    'group' => 'Common',
  );
}