public function indexPagesOnlyIndex(APITester $I) { $I->sendGET('/pages?index'); $I->seeResponseCodeIs(200); // Should be an array $I->seeResponseJsonMatchesJsonPath('$.[*]'); $I->dontSeeResponseJsonMatchesJsonPath('$.[*].*'); }
public function listFiles(APITester $I) { $I->amBearerAuthenticated($this->token); $I->sendGET('/files'); $I->seeResponseCodeIs(200); $I->seeResponseJsonMatchesJsonPath('$.[*]'); $I->dontSeeResponseJsonMatchesJsonPath('$.[*].*'); }
public function showUser(APITester $I) { $I->amBearerAuthenticated($this->token); $I->sendGET('/users/admin'); $I->seeResponseCodeIs(200); $I->seeResponseJsonMatchesJsonPath('$.[*]'); $I->seeResponseJsonMatchesJsonPath('$.username'); $I->dontSeeResponseJsonMatchesJsonPath('$.password'); }
public function showTheme(APITester $I) { $I->amBearerAuthenticated($this->token); $I->sendGET('/themes/galaxy'); $I->seeResponseCodeIs(200); $I->seeResponseJsonMatchesJsonPath('$.[*]'); $I->seeResponseJsonMatchesJsonPath('$.name'); $I->seeResponseJsonMatchesJsonPath('$.layouts.[*]'); $I->seeResponseJsonMatchesJsonPath('$.infos.[*]'); $I->dontSeeResponseJsonMatchesJsonPath('$.layouts.[*].[*]'); }