Skip to content

Commit

Permalink
Remove not relevant test for the navigation entry
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Jun 21, 2017
1 parent 627a300 commit 8a420c8
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions tests/AppInfo/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 8a420c8

Please sign in to comment.