1 common.test CommonBackdropGotoTestCase::testBackdropGotoAlter()

Test hook_backdrop_goto_alter().

File

core/modules/simpletest/tests/common.test, line 1328
Tests for common.inc functionality.

Class

CommonBackdropGotoTestCase
Tests backdrop_goto() and hook_backdrop_goto_alter().

Code

function testBackdropGotoAlter() {
  $this->backdropGet('common-test/backdrop_goto/redirect_fail');

  $this->assertNoText(t("Backdrop goto failed to stop program"), 'Backdrop goto stopped program.');
  $this->assertNoText('backdrop_goto_fail', 'Backdrop goto redirect failed.');
}