$this->assertResponse(403,t('Requesting http.php with a bad simpletest User-Agent fails.'));
$this->assertResponse(403,'Requesting http.php with a bad simpletest User-Agent fails.');
$this->drupalGet($https_path);
$this->assertResponse(403,t('Requesting https.php with a bad simpletest User-Agent fails.'));
$this->assertResponse(403,'Requesting https.php with a bad simpletest User-Agent fails.');
// Use a real User-Agent and verify that the special files http.php and
// https.php can't be accessed.
$this->additionalCurlOptions=array(CURLOPT_USERAGENT=>'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12');
$this->drupalGet($HTTP_path);
$this->assertResponse(403,t('Requesting http.php with a normal User-Agent fails.'));
$this->assertResponse(403,'Requesting http.php with a normal User-Agent fails.');
$this->drupalGet($https_path);
$this->assertResponse(403,t('Requesting https.php with a normal User-Agent fails.'));
$this->assertResponse(403,'Requesting https.php with a normal User-Agent fails.');
}
}
...
...
@@ -165,7 +165,7 @@ function testWebTestRunner() {
// Regression test for #290316.
// Check that test_id is incrementing.
$this->assertTrue($this->test_ids[0]!=$this->test_ids[1],t('Test ID is incrementing.'));
$this->assertTrue($this->test_ids[0]!=$this->test_ids[1],'Test ID is incrementing.');
}
}
...
...
@@ -228,7 +228,7 @@ function confirmStubTestResults() {
$this->assertEqual('6 passes, 5 fails, 2 exceptions, and 1 debug message',$this->childTestResults['summary'],'Stub test summary is correct');