Skip to content

Commit

Permalink
Test plain url links and sections in menu widget
Browse files Browse the repository at this point in the history
  • Loading branch information
bjuppa committed Oct 17, 2018
1 parent 55a3e00 commit a21bb14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Feature/Fakes/UserlandServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ protected function registerWidgets()

protected function registerMenuLinks()
{
$routeName = 'userland.index';
$name = 'Userland Tool';
$this->addMenuWidgetRoute($routeName, $name);
$this->addMenuWidgetRoute('Userland Tool', 'userland.index');
$this->addMenuWidgetUrl('External Link', 'http://external.com', 'External');
}
}
2 changes: 2 additions & 0 deletions tests/Feature/UserlandControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public function test_menu_widget()
$response->assertSee('<ul data-kontour-widget="menu">');
$response->assertSee('>main<');
$response->assertSee('<a href="' . route('userland.index') . '">Userland Tool</a>');
$response->assertSee('>External<');
$response->assertSee('<a href="http://external.com">External Link</a>');
}

public function test_recent_visits_widgets()
Expand Down

0 comments on commit a21bb14

Please sign in to comment.