diff --git a/application/tests/Unit/Event/Menu/MenuEventTest.php b/application/tests/Unit/Event/Menu/MenuEventTest.php new file mode 100644 index 0000000..8fa79bf --- /dev/null +++ b/application/tests/Unit/Event/Menu/MenuEventTest.php @@ -0,0 +1,32 @@ +createMock(FactoryInterface::class); + $item = $this->createMock(ItemInterface::class); + $request = $this->createMock(RequestStack::class); + $this->menuEvent = new MenuEvent($factory, $item, $request); + } + + public function testConstructor(): void + { + $this->assertInstanceOf(FactoryInterface::class, $this->menuEvent->getFactory()); + $this->assertInstanceOf(ItemInterface::class, $this->menuEvent->getItem()); + $this->assertInstanceOf(RequestStack::class, $this->menuEvent->getRequest()); + } +}