mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge pull request #383 from creative-commoners/pulls/2.1/loosen-json-test
Loosen test assertion on content type for application/json
This commit is contained in:
commit
f24fd60f14
@ -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