From e28e22c962fa6550f370cdcc450d9adff8fb4060 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 22 Apr 2022 10:58:36 +1200 Subject: [PATCH] MNT Fix unit test --- tests/php/Controller/AdminRegistrationControllerTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/php/Controller/AdminRegistrationControllerTest.php b/tests/php/Controller/AdminRegistrationControllerTest.php index 8053944e..0eb382e8 100644 --- a/tests/php/Controller/AdminRegistrationControllerTest.php +++ b/tests/php/Controller/AdminRegistrationControllerTest.php @@ -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());