Merge branch 'w01_MDL-43510_m26_test404' of https://github.com/skodak/moodle into MOODLE_26_STABLE

This commit is contained in:
Dan Poltawski
2014-01-07 17:26:01 +08:00
+1 -1
View File
@@ -129,7 +129,7 @@ class core_filelib_testcase extends advanced_testcase {
$this->assertSame('404', $response->status);
$this->assertTrue(is_array($response->headers));
$this->assertRegExp('|^HTTP/1\.[01] 404 Not Found$|', rtrim($response->response_code));
$this->assertStringStartsWith('<!DOCTYPE', $response->results);
// Do not test the response starts with DOCTYPE here because some servers may return different headers.
$this->assertSame('', $response->error);
// Invalid url.