You are here

function WorkflowNamedTransitionsTest::testEditLabelsExistsAdmin in Workflow 7.2

File

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

Class

WorkflowNamedTransitionsTest
@file Tests for the Workflow Named Transitions module.

Code

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

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