function TriggerUnassignTestCase::testUnassignAccessDenied

Tests an attempt to unassign triggers when none are assigned.

File

modules/trigger/trigger.test, line 766

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.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.