Exemplo n.º 1
0
 public function testFindUserByAccessToken()
 {
     expect_that($user = User::findIdentityByAccessToken('100-token'));
     expect($user->username)->equals('admin');
     expect_not(User::findIdentityByAccessToken('non-existing'));
 }