@@ -84,7 +84,7 @@ public function testRedirectIsReturnedByResetWhenUserCredentialsInvalid()
8484 $ mocks ['users ' ]->shouldReceive ('retrieveByCredentials ' )->once ()->with (array ('creds ' ))->andReturn (null );
8585 $ mocks ['redirect ' ]->shouldReceive ('refresh ' )->andReturn ($ redirect = m::mock ('Illuminate\Http\RedirectResponse ' ));
8686 $ redirect ->shouldReceive ('with ' )->once ()->with ('error ' , true )->andReturn ($ redirect );
87- $ redirect ->shouldReceive ('with ' )->once ()->with ('reason ' , 'user ' )->andReturn ($ redirect );
87+ $ redirect ->shouldReceive ('with ' )->once ()->with ('reason ' , 'reminders. user ' )->andReturn ($ redirect );
8888
8989 $ this ->assertInstanceof ('Illuminate\Http\RedirectResponse ' , $ broker ->reset (array ('creds ' ), function () {}));
9090 }
@@ -100,7 +100,7 @@ public function testRedirectReturnedByRemindWhenPasswordsDontMatch()
100100 $ request ->shouldReceive ('input ' )->once ()->with ('password_confirmation ' )->andReturn ('bar ' );
101101 $ mocks ['redirect ' ]->shouldReceive ('refresh ' )->andReturn ($ redirect = m::mock ('Illuminate\Http\RedirectResponse ' ));
102102 $ redirect ->shouldReceive ('with ' )->once ()->with ('error ' , true )->andReturn ($ redirect );
103- $ redirect ->shouldReceive ('with ' )->once ()->with ('reason ' , 'password ' )->andReturn ($ redirect );
103+ $ redirect ->shouldReceive ('with ' )->once ()->with ('reason ' , 'reminders. password ' )->andReturn ($ redirect );
104104
105105 $ this ->assertInstanceof ('Illuminate\Http\RedirectResponse ' , $ broker ->reset (array ('creds ' ), function () {}));
106106 }
@@ -116,7 +116,7 @@ public function testRedirectReturnedByRemindWhenPasswordNotSet()
116116 $ request ->shouldReceive ('input ' )->once ()->with ('password_confirmation ' )->andReturn (null );
117117 $ mocks ['redirect ' ]->shouldReceive ('refresh ' )->andReturn ($ redirect = m::mock ('Illuminate\Http\RedirectResponse ' ));
118118 $ redirect ->shouldReceive ('with ' )->once ()->with ('error ' , true )->andReturn ($ redirect );
119- $ redirect ->shouldReceive ('with ' )->once ()->with ('reason ' , 'password ' )->andReturn ($ redirect );
119+ $ redirect ->shouldReceive ('with ' )->once ()->with ('reason ' , 'reminders. password ' )->andReturn ($ redirect );
120120
121121 $ this ->assertInstanceof ('Illuminate\Http\RedirectResponse ' , $ broker ->reset (array ('creds ' ), function () {}));
122122 }
@@ -132,7 +132,7 @@ public function testRedirectReturnedByRemindWhenPasswordsLessThanSixCharacters()
132132 $ request ->shouldReceive ('input ' )->once ()->with ('password_confirmation ' )->andReturn ('abc ' );
133133 $ mocks ['redirect ' ]->shouldReceive ('refresh ' )->andReturn ($ redirect = m::mock ('Illuminate\Http\RedirectResponse ' ));
134134 $ redirect ->shouldReceive ('with ' )->once ()->with ('error ' , true )->andReturn ($ redirect );
135- $ redirect ->shouldReceive ('with ' )->once ()->with ('reason ' , 'password ' )->andReturn ($ redirect );
135+ $ redirect ->shouldReceive ('with ' )->once ()->with ('reason ' , 'reminders. password ' )->andReturn ($ redirect );
136136
137137 $ this ->assertInstanceof ('Illuminate\Http\RedirectResponse ' , $ broker ->reset (array ('creds ' ), function () {}));
138138 }
@@ -149,7 +149,7 @@ public function testRedirectReturnedByRemindWhenRecordDoesntExistInTable()
149149 $ mocks ['reminders ' ]->shouldReceive ('exists ' )->with ($ user , 'token ' )->andReturn (false );
150150 $ mocks ['redirect ' ]->shouldReceive ('refresh ' )->andReturn ($ redirect = m::mock ('Illuminate\Http\RedirectResponse ' ));
151151 $ redirect ->shouldReceive ('with ' )->once ()->with ('error ' , true )->andReturn ($ redirect );
152- $ redirect ->shouldReceive ('with ' )->once ()->with ('reason ' , 'token ' )->andReturn ($ redirect );
152+ $ redirect ->shouldReceive ('with ' )->once ()->with ('reason ' , 'reminders. token ' )->andReturn ($ redirect );
153153
154154 $ this ->assertInstanceof ('Illuminate\Http\RedirectResponse ' , $ broker ->reset (array ('creds ' ), function () {}));
155155 }
0 commit comments