You are here

function JammerPreviewButtonTest::testPreviewButton in Jammer 5

File

tests/jammer_preview.test, line 32

Class

JammerPreviewButtonTest

Code

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