You are here

public function ConfigUpdateUnitTestBase::mockTranslate in Configuration Update Manager 8

Mocks the translateString() method for the string translation mock object.

Parameters

\Drupal\Core\StringTranslation\TranslatableMarkup $input: Object to translate.

Return value

string The untranslated string from $input.

File

tests/src/Unit/ConfigUpdateUnitTestBase.php, line 311

Class

ConfigUpdateUnitTestBase
Base class for unit testing in Config Update Manager.

Namespace

Drupal\Tests\config_update\Unit

Code

public function mockTranslate(TranslatableMarkup $input) {
  return $input
    ->getUntranslatedString();
}