Skip to content

Commit

Permalink
Merge branch '2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ScopeyNZ committed Aug 19, 2018
2 parents d8088ed + f24fd60 commit 687e013
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/php/SubsiteXHRControllerTest.php
Expand Up @@ -35,7 +35,8 @@ public function testCanView()
]);

$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);
Expand Down

0 comments on commit 687e013

Please sign in to comment.