You are here

function DrupalGotoTest::testDrupalGotoAlter in SimpleTest 7

Test setting and retrieving content for theme regions.

File

tests/common.test, line 931
Tests for common.inc functionality.

Class

DrupalGotoTest
Testing drupal_goto and hook_drupal_goto_alter().

Code

function testDrupalGotoAlter() {
  $this
    ->drupalGet('common-test/drupal_goto/redirect_fail');
  $this
    ->assertNoText(t("Drupal goto failed to stop program"), t("Drupal goto stopped program."));
  $this
    ->assertNoText('drupal_goto_fail', t("Drupal goto redirect failed."));
}