You are here

public function DazzlerTest::getTestMessage in Formdazzle! 2.x

Gets a standard message to use on test failures.

Return value

string The test message to use.

10 calls to DazzlerTest::getTestMessage()
DazzlerTest::testAddDefaultThemeProperties in tests/src/Unit/DazzlerTest.php
@covers ::addDefaultThemeProperties
DazzlerTest::testAddSuggestions in tests/src/Unit/DazzlerTest.php
@covers ::addSuggestions
DazzlerTest::testFormAlter in tests/src/Unit/DazzlerTest.php
@covers ::formAlter
DazzlerTest::testGetFormIdSuggestion in tests/src/Unit/DazzlerTest.php
@covers ::getFormIdSuggestion
DazzlerTest::testModuleImplementsAlter in tests/src/Unit/DazzlerTest.php
@covers ::moduleImplementsAlter

... See full list

File

tests/src/Unit/DazzlerTest.php, line 154

Class

DazzlerTest
@coversDefaultClass \Drupal\formdazzle\Dazzler @group formdazzle

Namespace

Drupal\Tests\formdazzle\Unit

Code

public function getTestMessage() {
  return preg_replace_callback('/^test(.)([^ ]+)/', function ($matches) {
    return Dazzler::class . '::' . strtolower($matches[1]) . $matches[2] . '()';
  }, $this
    ->getName());
}