You are here

function JammerPreviewButtonTest::testNoPreviewButtonWithContentCreation in Jammer 5

File

tests/jammer_preview.test, line 22

Class

JammerPreviewButtonTest

Code

function testNoPreviewButtonWithContentCreation() {
  $user = $this
    ->drupalCreateUserRolePerm(array(
    'create page content',
  ));
  $this
    ->drupalLoginUser($user);
  $this
    ->drupalModuleEnable('jammer');
  $this
    ->drupalVariableSet('jammer_preview_button_unset_node_types', array(
    'page',
  ));
  $url = url('node/add/page', NULL, NULL, TRUE);
  $this
    ->get($url);
  $this
    ->assertNoUnwantedRaw('id="edit-preview"');
}