From 8a420c833d5e947c2211fdba9dd52b95541c7d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Tue, 20 Jun 2017 17:15:31 +0200 Subject: [PATCH] Remove not relevant test for the navigation entry --- tests/AppInfo/AppTest.php | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/tests/AppInfo/AppTest.php b/tests/AppInfo/AppTest.php index f37d539..ffcadd3 100644 --- a/tests/AppInfo/AppTest.php +++ b/tests/AppInfo/AppTest.php @@ -85,38 +85,6 @@ protected function tearDown() { parent::tearDown(); } - public function testAppNavigation() { - $this->navigationManager->expects($this->once()) - ->method('add') - ->willReturnCallback(function($closure) { - $this->assertInstanceOf('\Closure', $closure); - $navigation = $closure(); - $this->assertInternalType('array', $navigation); - $this->assertCount(5, $navigation); - $this->assertSame([ - 'id' => 'announcementcenter', - 'order' => 10, - 'href' => '/apps/announcementcenter/announcement', - 'icon' => '/apps/announcementcenter/img/announcementcenter.svg', - 'name' => 'Announcements', - ], $navigation); - }); - $this->urlGenerator->expects($this->once()) - ->method('linkToRoute') - ->with('announcementcenter.page.index') - ->willReturn('/apps/announcementcenter/announcement'); - $this->urlGenerator->expects($this->once()) - ->method('imagePath') - ->with('announcementcenter', 'announcementcenter.svg') - ->willReturn('/apps/announcementcenter/img/announcementcenter.svg'); - $this->languageFactory->expects($this->once()) - ->method('get') - ->with('announcementcenter') - ->willReturn($this->language); - - include(__DIR__ . '/../../appinfo/app.php'); - } - public function testAppActivity() { $this->activityManager->expects($this->once()) ->method('registerExtension')