Issue #1811662 by xjm: Remove node frontpage dependency from HttpRequestTest.
parent
688368e5ff
commit
6d5b0fffa9
|
@ -45,11 +45,11 @@ class HttpRequestTest extends WebTestBase {
|
|||
$this->assertEqual($unable_to_parse->code, -1001, 'Returned with "-1001" error code.');
|
||||
$this->assertEqual($unable_to_parse->error, 'unable to parse URL', 'Returned with "unable to parse URL" error message.');
|
||||
|
||||
// Fetch page.
|
||||
$result = drupal_http_request(url('node', array('absolute' => TRUE)));
|
||||
// Fetch the user login page.
|
||||
$result = drupal_http_request(url('user/login', array('absolute' => TRUE)));
|
||||
$this->assertEqual($result->code, 200, 'Fetched page successfully.');
|
||||
$this->drupalSetContent($result->data);
|
||||
$this->assertTitle(t('Welcome to @site-name | @site-name', array('@site-name' => config('system.site')->get('name'))), 'Site title matches.');
|
||||
$this->assertTitle(t('Log in | @site-name', array('@site-name' => config('system.site')->get('name'))));
|
||||
|
||||
// Test that code and status message is returned.
|
||||
$result = drupal_http_request(url('pagedoesnotexist', array('absolute' => TRUE)));
|
||||
|
|
Loading…
Reference in New Issue