MMenuMenuTest.php in Mobile sliding menu 8
File
src/Tests/MMenuMenuTest.php
View source
<?php
namespace Drupal\mmenu\Tests;
use Drupal\simpletest\WebTestBase;
class MmenuMenuTest extends WebTestBase {
public static $modules = array(
'libraries',
'mmenu',
);
protected $profile = 'minimal';
public function testMmenuSettingsLink() {
$admin_user = $this
->drupalCreateUser(array(
'access administration pages',
'administer mmenu',
));
$this
->drupalLogin($admin_user);
$this
->drupalGet('admin/config');
$this
->assertLinkByHref('admin/config/mobile/left_mmenu_settings');
}
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.');
}
}