/** * @param bool $isAuthenticated */ private function requestIsAuthenticated(bool $isAuthenticated) { $this->guard->shouldReceive('guest')->zeroOrMoreTimes()->andReturn(!$isAuthenticated); }