function RedirectFunctionalTest::test404Interface in Redirect 7
Same name and namespace in other branches
- 7.2 redirect.test \RedirectFunctionalTest::test404Interface()
File
- ./redirect.test, line 224
- Unit tests for the redirect module.
Class
- RedirectFunctionalTest
Code
function test404Interface() {
$this
->drupalGet('invalid-path1');
$this
->drupalGet('invalid-path2');
$this
->assertLink('Add URL redirect from this page to another location');
$this
->drupalGet('admin/config/system/actions');
$this
->assertNoLink('Add URL redirect from this page to another location');
$this
->drupalGet('admin/reports/page-not-found');
$this
->clickLink('Fix file not found (404) errors with URL redirects');
$this
->drupalLogout();
$this
->drupalGet('invalid-path3');
$this
->assertNoLink('Add an URL redirect from this page to another location');
}