Skip to content

Commit

Permalink
Fixed PHPUnit API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Jun 22, 2017
1 parent d8160d9 commit bfae6b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/php/VersionedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1026,11 +1026,12 @@ public function testReadingPersistent()

/**
* Test that stage parameter is blocked by non-administrative users
*
* @expectedException SilverStripe\Control\HTTPResponse_Exception
*/
public function testReadingModeSecurity()
{
$this->logOut();
$this->expectException(HTTPResponse_Exception::class);
$session = Injector::inst()->create(Session::class, []);
Director::test('/?stage=Stage', null, $session);
}
Expand Down

0 comments on commit bfae6b2

Please sign in to comment.