You are here

protected function EntityDecoupledTranslationRevisionsTest::formatMessage in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php \Drupal\KernelTests\Core\Entity\EntityDecoupledTranslationRevisionsTest::formatMessage()
  2. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php \Drupal\KernelTests\Core\Entity\EntityDecoupledTranslationRevisionsTest::formatMessage()

Formats an assertion message.

Parameters

string $message: The human-readable message.

Return value

string The formatted message.

File

core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php, line 486

Class

EntityDecoupledTranslationRevisionsTest
Test decoupled translation revisions.

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function formatMessage($message) {
  $args = func_get_args();
  array_shift($args);
  $params = array_merge($args, $this->stepInfo);
  array_unshift($params, $this->stepIndex + 1);
  array_unshift($params, '[Step %d] ' . $message . ' (langcode: %s, default_revision: %d, untranslatable_update: %d, valid: %d)');
  return call_user_func_array('sprintf', $params);
}