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']"); }
/** * @after testFirstRequest */ public function testSecondRequest(RestTester $I) { $I->wantTo('make the second request'); $I->sendGET('http://localhost:8010/rest/user/'); }