From 0c2a832136369e6efef898692ef8f4163ed34d02 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sun, 4 Nov 2018 15:11:16 +0100 Subject: [PATCH] Added test for menuevent --- .../tests/Unit/Event/Menu/MenuEventTest.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 application/tests/Unit/Event/Menu/MenuEventTest.php 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()); + } +}