$I = new ApiGuyTester($scenario); $I->wantTo('test suck'); $I->haveHttpHeader('Content-Type','application/x-www-form-urlencoded'); $I->amHttpAuthenticated('username','password'); $I->sendPOST('registration/test/', array('user_email' => 'web@gmail.com','user_password'=>'332222111', 'user_platform'=>'1','user_device'=>'21','user_language'=>'ru')); $I->seeResponseJsonMatchesJsonPath('$.store'); The test fails. Although the link all the array is displayed normally
{ "store": { "0": { "category": "fiction", "author": "Evelyn Waugh", "title": "Sword of Honour", "price": 12.99 }, "book": { "category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 }, "bicycle": { "color": "red", "price": 19.95 } } } Что я делаю не так.
codecept_debug($I->grabResponse());- Marsel Arduanov