You are here

function TriggerUnassignTestCase::testUnassignAccessDenied in Drupal 7

Tests an attempt to unassign triggers when none are assigned.

File

modules/trigger/trigger.test, line 766
Tests for trigger.module.

Class

TriggerUnassignTestCase
Tests the unassigning of triggers.

Code

function testUnassignAccessDenied() {
  $this
    ->drupalGet('admin/structure/trigger/unassign');
  $this
    ->assertResponse(403, 'If there are no actions available, return access denied.');
}