Skip to content

Commit

Permalink
Update tests/Admin/AdminTest.php
Browse files Browse the repository at this point in the history
Co-authored-by: Grégoire Paris <[email protected]>
  • Loading branch information
dmaicher and greg0ire authored Aug 30, 2020
1 parent ebe84f8 commit 30e367b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Admin/AdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,9 @@ public function testTransWithMessageDomain(): void
public function testTransChoiceFailsForUnsupportedInstance(): void
{
$this->expectException(\RuntimeException::class);
$this->expectExceptionMessage('AbstractAdmin::transChoice is only supported for translators implementing "Symfony\Component\Translation\TranslatorInterface"');
$this->expectExceptionMessage(
'AbstractAdmin::transChoice is only supported for translators implementing "Symfony\Component\Translation\TranslatorInterface"'
);
$translator = $this->createMock(TranslatorInterface::class);
$admin = new PostAdmin('', '');
$admin->setTranslator($translator);
Expand Down

0 comments on commit 30e367b

Please sign in to comment.