public function test_user_exists_returns_false_when_user_doesnt_exist()
 {
     OAuthIdentity::create(array('user_id' => 2, 'provider' => 'facebook', 'provider_user_id' => 'foobar', 'access_token' => 'def456'));
     $details = new ProviderUserDetails(array('accessToken' => 'new-token', 'userId' => 'bazfoo', 'nickname' => 'john.doe', 'firstName' => 'John', 'lastName' => 'Doe', 'email' => '*****@*****.**', 'imageUrl' => 'http://example.com/photos/john_doe.jpg'));
     $identities = new IdentityStore();
     $this->assertFalse($identities->userExists('facebook', $details));
 }
 protected function configureOAuthIdentitiesTable()
 {
     OAuthIdentity::configureTable($this->app['config']['eloquent-oauth.table']);
 }