Release 2.38.0 (#5563)
This commit is contained in:
@@ -53,7 +53,6 @@ class ThemeEventExtensionTest extends TestCase
|
||||
protected function getSut(bool $hasListener = true): ThemeExtension
|
||||
{
|
||||
$dispatcher = $this->createMock(EventDispatcherInterface::class);
|
||||
$dispatcher->method('hasListeners')->willReturn($hasListener);
|
||||
$dispatcher->expects($hasListener ? $this->once() : $this->never())->method('dispatch');
|
||||
|
||||
$translator = $this->getMockBuilder(TranslatorInterface::class)->getMock();
|
||||
@@ -95,13 +94,6 @@ class ThemeEventExtensionTest extends TestCase
|
||||
self::assertInstanceOf(ThemeEvent::class, $event);
|
||||
}
|
||||
|
||||
public function testTriggerWithoutListener(): void
|
||||
{
|
||||
$sut = $this->getSut(false);
|
||||
$event = $sut->trigger($this->getEnvironment(), 'foo', []);
|
||||
self::assertInstanceOf(ThemeEvent::class, $event);
|
||||
}
|
||||
|
||||
public function testJavascriptTranslations(): void
|
||||
{
|
||||
$sut = $this->getSut();
|
||||
|
||||
Reference in New Issue
Block a user