diff --git a/core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php b/core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php index 974b374..e48c610 100644 --- a/core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php +++ b/core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php @@ -94,9 +94,8 @@ public function testIsStringAssertion() { * @covers ::__construct */ public function testIsStringAssertionWithFormattableMarkup() { - $translation = $this->getStringTranslationStub(); - $this->setExpectedException(\InvalidArgumentException::class, '$string ("foo") must be a string.'); $formattable_string = new FormattableMarkup('@bar', ['@bar' => 'foo']); + $this->setExpectedException(\InvalidArgumentException::class, '$string ("foo") must be a string.'); new TranslatableMarkup($formattable_string); }