Example #1
0
 public function test_store()
 {
     $identity = new OAuthIdentity(array('user_id' => 1, 'provider' => 'facebook', 'provider_user_id' => 'foobar', 'access_token' => 'abc123'));
     $this->assertEquals(0, OAuthIdentity::count());
     $identities = new IdentityStore();
     $identities->store($identity);
     $this->assertEquals(1, OAuthIdentity::count());
 }
 protected function configureOAuthIdentitiesTable()
 {
     OAuthIdentity::configureTable($this->app['config']['eloquent-oauth::table']);
 }