File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,17 @@ public function testAccessTokens()
46
46
$ this ->assertSame ([], $ this ->user ->accessTokens ());
47
47
48
48
// Give the user a couple of access tokens
49
- $ token1 = fake (UserIdentityModel::class, ['user_id ' => $ this ->user ->id , 'type ' => 'access_token ' ]);
50
- $ token2 = fake (UserIdentityModel::class, ['user_id ' => $ this ->user ->id , 'type ' => 'access_token ' ]);
49
+ $ token1 = fake (
50
+ UserIdentityModel::class,
51
+ ['user_id ' => $ this ->user ->id , 'type ' => 'access_token ' , 'secret ' => 'secretToken1 ' ]
52
+ );
53
+ $ token2 = fake (
54
+ UserIdentityModel::class,
55
+ ['user_id ' => $ this ->user ->id , 'type ' => 'access_token ' , 'secret ' => 'secretToken2 ' ]
56
+ );
51
57
52
58
$ tokens = $ this ->user ->accessTokens ();
59
+
53
60
$ this ->assertCount (2 , $ tokens );
54
61
$ this ->assertSame ($ token1 ->id , $ tokens [0 ]->id );
55
62
$ this ->assertSame ($ token2 ->id , $ tokens [1 ]->id );
You can’t perform that action at this time.
0 commit comments