public function getNonExistingBrandTest(\CoreApiTester $I) { $I->wantTo('BRAND: GET a brand by given ID: 999999999, NOT FOUND!'); $I->sendGET('/api/static/brand/999999999', $this->apikeyParam); $I->seeResponseIsJson(); $I->seeResponseCodeIs(404); }
public function getApiRootInfo(CoreApiTester $I) { $I->wantTo('API: GET api meta info'); $I->sendGET('/api', $this->apikeyParam); $I->seeResponseCodeIs(200); $I->seeResponseIsJson(); $I->seeResponseJsonMatchesJsonPath('$.api_creator'); $I->seeResponseJsonMatchesJsonPath('$.api_name'); $I->seeResponseJsonMatchesJsonPath('$.api_reference_url'); $I->seeResponseJsonMatchesJsonPath('$.api_source'); $I->seeResponseJsonMatchesJsonPath('$.api_version'); }