File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,6 @@ public function user()
173
173
}
174
174
}
175
175
176
- if (is_null ($ this ->user )) {
177
- $ this ->clearUserDataFromStorage ();
178
- }
179
-
180
176
return $ this ->user ;
181
177
}
182
178
Original file line number Diff line number Diff line change @@ -262,9 +262,6 @@ public function testAuthenticateThrowsWhenUserIsNull()
262
262
$ this ->expectExceptionMessage ('Unauthenticated. ' );
263
263
264
264
$ guard = $ this ->getGuard ();
265
- $ guard ->setCookieJar ($ cookies = m::mock (CookieJar::class));
266
- $ cookies ->shouldReceive ('unqueue ' )->once ();
267
- $ guard ->getSession ()->shouldReceive ('remove ' )->once ();
268
265
$ guard ->getSession ()->shouldReceive ('get ' )->once ()->andReturn (null );
269
266
270
267
$ guard ->authenticate ();
@@ -316,9 +313,6 @@ public function testUserMethodReturnsCachedUser()
316
313
public function testNullIsReturnedForUserIfNoUserFound ()
317
314
{
318
315
$ mock = $ this ->getGuard ();
319
- $ mock ->setCookieJar ($ cookies = m::mock (CookieJar::class));
320
- $ cookies ->shouldReceive ('unqueue ' )->once ();
321
- $ mock ->getSession ()->shouldReceive ('remove ' )->once ();
322
316
$ mock ->getSession ()->shouldReceive ('get ' )->once ()->andReturn (null );
323
317
$ this ->assertNull ($ mock ->user ());
324
318
}
You can’t perform that action at this time.
0 commit comments