Issue #1811662 by xjm: Remove node frontpage dependency from HttpRequestTest.

8.0.x
webchick 2012-10-12 20:57:26 -07:00
parent 688368e5ff
commit 6d5b0fffa9
1 changed files with 3 additions and 3 deletions

View File

@ -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)));