Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Nov 20, 2024
1 parent f108d53 commit b61e028
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/Twig/EasyAdminTwigExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
use Symfony\Contracts\Translation\TranslatableInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
use Symfony\UX\Icons\Twig\UXIconRuntime;

class EasyAdminTwigExtensionTest extends KernelTestCase
{
Expand All @@ -26,7 +27,8 @@ public function testRepresentAsString($value, $expectedValue, bool $assertRegex
$this->getMockBuilder(AdminContextProvider::class)->disableOriginalConstructor()->getMock(),
$this->getMockBuilder(CsrfTokenManagerInterface::class)->disableOriginalConstructor()->getMock(),
$this->getMockBuilder(ImportMapRenderer::class)->disableOriginalConstructor()->getMock(),
$translator
$translator,
$this->getMockBuilder(UXIconRuntime::class)->disableOriginalConstructor()->getMock(),
);

$result = $extension->representAsString($value, $toStringMethod);
Expand All @@ -48,7 +50,8 @@ public function testRepresentAsStringExcepion()
$this->getMockBuilder(AdminContextProvider::class)->disableOriginalConstructor()->getMock(),
$this->getMockBuilder(CsrfTokenManagerInterface::class)->disableOriginalConstructor()->getMock(),
$this->getMockBuilder(ImportMapRenderer::class)->disableOriginalConstructor()->getMock(),
$this->getMockBuilder(TranslatorInterface::class)->disableOriginalConstructor()->getMock()
$this->getMockBuilder(TranslatorInterface::class)->disableOriginalConstructor()->getMock(),
$this->getMockBuilder(UXIconRuntime::class)->disableOriginalConstructor()->getMock(),
);

$extension->representAsString(new class {}, 'someMethod');
Expand Down

0 comments on commit b61e028

Please sign in to comment.