Skip to content

Commit

Permalink
Merge pull request #453 from creative-commoners/pulls/4.5/unit-test
Browse files Browse the repository at this point in the history
MNT Fix unit test
  • Loading branch information
GuySartorelli authored Apr 21, 2022
2 parents d43790f + e28e22c commit a639464
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/php/Controller/AdminRegistrationControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function testStartRegistrationReturns200Response()
*/
public function testStartRegistrationDisablesHTTPCaching()
{
$this->logInAs($this->objFromFixture(Member::class, 'sally_smith'));
$middleware = HTTPCacheControlMiddleware::singleton();
$middleware->enableCache(true);
$this->assertSame('enabled', $middleware->getState());
Expand Down

0 comments on commit a639464

Please sign in to comment.