3 namespace Drupal\Tests\drupalmoduleupgrader\Unit\Plugin\DMU\Converter\Functions;
8 * @group DMU.Converter.Functions
9 * @covers \Drupal\drupalmoduleupgrader\Plugin\DMU\Converter\Functions\St
11 class StTest extends FunctionCallModifierTestBase {
13 public function testRewrite() {
14 $function_call = Parser::parseExpression('st("I translate thee!")');
15 /** @var \Pharborist\Functions\FunctionCallNode $rewritten */
16 $rewritten = $this->plugin->rewrite($function_call, $this->target);
17 $this->assertSame($function_call, $rewritten);
18 $this->assertEquals('t("I translate thee!")', $rewritten->getText());