You are here

function WorkflowNamedTransitionsTest::testEditLabelsMissing in Workflow 7.2

File

workflow_admin_ui/includes/Test/workflow_named_transitions.test, line 31
Tests for the Workflow Named Transitions module.

Class

WorkflowNamedTransitionsTest
@file Tests for the Workflow Named Transitions module.

Code

function testEditLabelsMissing() {
  $user = $this
    ->drupalCreateUser(array(
    'access content',
  ));
  $this
    ->drupalLogin($user);
  $this
    ->drupalGet('admin/build/workflow');

  // HTML of the Edit labels tab
  $this
    ->assertNoRaw(sprintf('admin/build/workflow/labels">%s</a>', t('Edit labels')), t('Edit labels tab not found'));
  $this
    ->drupalGet('admin/build/workflow/labels');
  $this
    ->assertResponse('403');
}