From 791fd115653ef1d867375f754380756621f5ad53 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Mon, 5 Nov 2018 00:24:05 +0100 Subject: [PATCH] in between commit implementing Source menu subscriber test --- .../Subscriber/SourceMenuSubscriberTest.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 application/tests/Unit/Subscriber/SourceMenuSubscriberTest.php diff --git a/application/tests/Unit/Subscriber/SourceMenuSubscriberTest.php b/application/tests/Unit/Subscriber/SourceMenuSubscriberTest.php new file mode 100644 index 0000000..9c7e7c5 --- /dev/null +++ b/application/tests/Unit/Subscriber/SourceMenuSubscriberTest.php @@ -0,0 +1,39 @@ +subscriber = new SourceMenuSubscriber($translator); + } + + public function testOnSourceMenuConfig():void{ + $factory = $this->createMock(FactoryInterface::class); + $item = $this->createMock(ItemInterface::class); + $request = $this->createMock(RequestStack::class); + $event = new MenuEvent($factory, $item, $request); + $this->assertNull($this->subscriber->onSourceMenuConfigure($event)); + } +} + + +