@@ -158,7 +158,7 @@ public function testAttemptAndWithCallbacks()
158
158
$ mock ->expects ($ this ->once ())->method ('getName ' )->willReturn ('foo ' );
159
159
$ user ->shouldReceive ('getAuthIdentifier ' )->once ()->andReturn ('bar ' );
160
160
$ mock ->getSession ()->shouldReceive ('put ' )->with ('foo ' , 'bar ' )->once ();
161
- $ session ->shouldReceive ('migrate ' )->once ();
161
+ $ session ->shouldReceive ('regenerate ' )->once ();
162
162
$ mock ->getProvider ()->shouldReceive ('retrieveByCredentials ' )->times (3 )->with (['foo ' ])->andReturn ($ user );
163
163
$ mock ->getProvider ()->shouldReceive ('validateCredentials ' )->twice ()->andReturnTrue ();
164
164
$ mock ->getProvider ()->shouldReceive ('validateCredentials ' )->once ()->andReturnFalse ();
@@ -233,7 +233,7 @@ public function testLoginStoresIdentifierInSession()
233
233
$ mock ->expects ($ this ->once ())->method ('getName ' )->willReturn ('foo ' );
234
234
$ user ->shouldReceive ('getAuthIdentifier ' )->once ()->andReturn ('bar ' );
235
235
$ mock ->getSession ()->shouldReceive ('put ' )->with ('foo ' , 'bar ' )->once ();
236
- $ session ->shouldReceive ('migrate ' )->once ();
236
+ $ session ->shouldReceive ('regenerate ' )->once ();
237
237
$ mock ->login ($ user );
238
238
}
239
239
@@ -261,7 +261,7 @@ public function testLoginFiresLoginAndAuthenticatedEvents()
261
261
$ mock ->expects ($ this ->once ())->method ('getName ' )->willReturn ('foo ' );
262
262
$ user ->shouldReceive ('getAuthIdentifier ' )->once ()->andReturn ('bar ' );
263
263
$ mock ->getSession ()->shouldReceive ('put ' )->with ('foo ' , 'bar ' )->once ();
264
- $ session ->shouldReceive ('migrate ' )->once ();
264
+ $ session ->shouldReceive ('regenerate ' )->once ();
265
265
$ mock ->login ($ user );
266
266
}
267
267
@@ -501,7 +501,7 @@ public function testLoginMethodQueuesCookieWhenRemembering()
501
501
$ cookie ->shouldReceive ('make ' )->once ()->with ($ guard ->getRecallerName (), 'foo|recaller|bar ' , 576000 )->andReturn ($ foreverCookie );
502
502
$ cookie ->shouldReceive ('queue ' )->once ()->with ($ foreverCookie );
503
503
$ guard ->getSession ()->shouldReceive ('put ' )->once ()->with ($ guard ->getName (), 'foo ' );
504
- $ session ->shouldReceive ('migrate ' )->once ();
504
+ $ session ->shouldReceive ('regenerate ' )->once ();
505
505
$ user = m::mock (Authenticatable::class);
506
506
$ user ->shouldReceive ('getAuthIdentifier ' )->andReturn ('foo ' );
507
507
$ user ->shouldReceive ('getAuthPassword ' )->andReturn ('bar ' );
@@ -521,7 +521,7 @@ public function testLoginMethodQueuesCookieWhenRememberingAndAllowsOverride()
521
521
$ cookie ->shouldReceive ('make ' )->once ()->with ($ guard ->getRecallerName (), 'foo|recaller|bar ' , 5000 )->andReturn ($ foreverCookie );
522
522
$ cookie ->shouldReceive ('queue ' )->once ()->with ($ foreverCookie );
523
523
$ guard ->getSession ()->shouldReceive ('put ' )->once ()->with ($ guard ->getName (), 'foo ' );
524
- $ session ->shouldReceive ('migrate ' )->once ();
524
+ $ session ->shouldReceive ('regenerate ' )->once ();
525
525
$ user = m::mock (Authenticatable::class);
526
526
$ user ->shouldReceive ('getAuthIdentifier ' )->andReturn ('foo ' );
527
527
$ user ->shouldReceive ('getAuthPassword ' )->andReturn ('bar ' );
@@ -540,7 +540,7 @@ public function testLoginMethodCreatesRememberTokenIfOneDoesntExist()
540
540
$ cookie ->shouldReceive ('make ' )->once ()->andReturn ($ foreverCookie );
541
541
$ cookie ->shouldReceive ('queue ' )->once ()->with ($ foreverCookie );
542
542
$ guard ->getSession ()->shouldReceive ('put ' )->once ()->with ($ guard ->getName (), 'foo ' );
543
- $ session ->shouldReceive ('migrate ' )->once ();
543
+ $ session ->shouldReceive ('regenerate ' )->once ();
544
544
$ user = m::mock (Authenticatable::class);
545
545
$ user ->shouldReceive ('getAuthIdentifier ' )->andReturn ('foo ' );
546
546
$ user ->shouldReceive ('getAuthPassword ' )->andReturn ('foo ' );
@@ -608,7 +608,7 @@ public function testUserUsesRememberCookieIfItExists()
608
608
$ guard ->getProvider ()->shouldReceive ('retrieveByToken ' )->once ()->with ('id ' , 'recaller ' )->andReturn ($ user );
609
609
$ user ->shouldReceive ('getAuthIdentifier ' )->once ()->andReturn ('bar ' );
610
610
$ guard ->getSession ()->shouldReceive ('put ' )->with ($ guard ->getName (), 'bar ' )->once ();
611
- $ session ->shouldReceive ('migrate ' )->once ();
611
+ $ session ->shouldReceive ('regenerate ' )->once ();
612
612
$ this ->assertSame ($ user , $ guard ->user ());
613
613
$ this ->assertTrue ($ guard ->viaRemember ());
614
614
}
0 commit comments