public function MmenuMenuTest::testMmenuSettingsMenu in Mobile sliding menu 8
Tests mmenu menus.
File
- src/
Tests/ MMenuMenuTest.php, line 46
Class
- MmenuMenuTest
- Test the user-facing menus in Mmenu.
Namespace
Drupal\mmenu\TestsCode
public function testMmenuSettingsMenu() {
$admin_user = $this
->drupalCreateUser(array(
'access administration pages',
'administer mmenu',
));
$this
->drupalLogin($admin_user);
$this
->drupalGet('admin/config/mobile/left_mmenu_settings');
$this
->assertResponse(200, 'Left Menu settings page exists.');
$this
->drupalGet('admin/config/mobile/right_mmenu_settings');
$this
->assertResponse(200, 'Right Menu settings page exists.');
$this
->drupalGet('admin/config/mobile/top_mmenu_settings');
$this
->assertResponse(200, 'Top Menu settings page exists.');
$this
->drupalGet('admin/config/mobile/bottom_mmenu_settings');
$this
->assertResponse(200, 'Bottom Menu settings page exists.');
}