mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-06-18 10:41:40 +02:00
Merge branch '2.1'
This commit is contained in:
commit
687e013793
|
@ -35,7 +35,8 @@ class SubsiteXHRControllerTest extends FunctionalTest
|
|||
]);
|
||||
|
||||
$this->assertEquals(200, $result->getStatusCode());
|
||||
$this->assertEquals('text/json', $result->getHeader('Content-Type'));
|
||||
// SilverStripe 4.0-4.2: text/json. >=4.3: application/json
|
||||
$this->assertContains('json', $result->getHeader('Content-Type'));
|
||||
|
||||
$body = $result->getBody();
|
||||
$this->assertContains('Main site', $body);
|
||||
|
|
Loading…
Reference in New Issue
Block a user