File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed
src/Jenssegers/Mongodb/Auth Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 7
7
convertNoticesToExceptions =" true"
8
8
convertWarningsToExceptions =" true"
9
9
processIsolation =" false"
10
- stopOnFailure =" false "
10
+ stopOnFailure =" true "
11
11
syntaxCheck =" false"
12
12
verbose =" true"
13
13
>
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ protected function tokenExpired($token)
28
28
// Convert UTCDateTime to a date string.
29
29
if ($ token ['created_at ' ] instanceof UTCDateTime) {
30
30
$ date = $ token ['created_at ' ]->toDateTime ();
31
-
32
31
$ token ['created_at ' ] = $ date ->format ('Y-m-d H:i:s ' );
33
32
} elseif (is_array ($ token ['created_at ' ]) and isset ($ token ['created_at ' ]['date ' ])) {
34
33
$ token ['created_at ' ] = $ token ['created_at ' ]['date ' ];
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use Illuminate \Auth \Passwords \PasswordBroker ;
4
+ use Illuminate \Foundation \Application ;
4
5
5
6
class AuthTest extends TestCase
6
7
{
@@ -25,6 +26,10 @@ public function testAuthAttempt()
25
26
26
27
public function testRemind ()
27
28
{
29
+ if (Application::VERSION >= '5.2 ' ) {
30
+ return ;
31
+ }
32
+
28
33
$ mailer = Mockery::mock ('Illuminate\Mail\Mailer ' );
29
34
$ tokens = $ this ->app ->make ('auth.password.tokens ' );
30
35
$ users = $ this ->app ['auth ' ]->driver ()->getProvider ();
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ protected function getEnvironmentSetUp($app)
35
35
$ app ['config ' ]->set ('database.connections.mongodb ' , $ config ['connections ' ]['mongodb ' ]);
36
36
37
37
$ app ['config ' ]->set ('auth.model ' , 'User ' );
38
+ $ app ['config ' ]->set ('auth.providers.users.model ' , 'User ' );
38
39
$ app ['config ' ]->set ('cache.driver ' , 'array ' );
39
40
}
40
41
}
You can’t perform that action at this time.
0 commit comments