Esempio n. 1
0
 public function callbackHasNoCode(FunctionalTester $I)
 {
     $count = User::count() + Profile::count();
     $I->sendGET($this->endpoint . '/facebook/callback');
     $I->seeResponseCodeIs(409);
     $I->seeResponseContainsJson(['status' => 'ERROR', 'message' => 'Ups, something went wrong during authorization']);
     $I->assertEquals($count, User::count() + Profile::count());
 }