Example #1
0
 public function registerAsUser(RestTester $I)
 {
     $I->wantTo('POST /users');
     $I->sendPOST('users.json', ['username' => $this->username, 'email' => $this->email, 'password' => $this->password]);
     $I->seeResponseIsJson();
     $I->seeResponseContainsJson(['email' => $this->email]);
     // $this->id = (string) $I->grabDataFromResponseByJsonPath("$['id']");
 }
Example #2
0
 /**
  * @after testFirstRequest
  */
 public function testSecondRequest(RestTester $I)
 {
     $I->wantTo('make the second request');
     $I->sendGET('http://localhost:8010/rest/user/');
 }