You are here

function JammerSettingsTest::testSettingsSecured in Jammer 5

File

tests/jammer_settings.test, line 21

Class

JammerSettingsTest

Code

function testSettingsSecured() {
  $user = $this
    ->drupalCreateUserRolePerm(array(
    'access content',
  ));
  $this
    ->drupalLoginUser($user);
  $this
    ->drupalModuleEnable('jammer');
  $url = url('admin/settings/jammer', NULL, NULL, TRUE);
  $this
    ->get($url);
  $this
    ->assertNoText('Jammer');
}