mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
Merge branch 'w01_MDL-43510_m27_test404' of https://github.com/skodak/moodle
This commit is contained in:
commit
7d374cdf4a
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user