Beispiel #1
0
 public function getStandardList(\Step\Api\User $I)
 {
     $I->am('an app');
     $I->wantTo('get the list of available media files');
     $I->getUserCredentialsAndUseHttpAuthentication();
     $I->sendGET($this->apiUrl, $this->params);
     $I->seeResponseCodeIs(200);
     $I->seeResponseIsJson();
     $I->seeResponseJsonMatchesXpath('//files/path');
     $I->dontSeeResponseContainsJson(['path' => 'folder2/testimagelarge.svg']);
     // Folder 4 contains the .nomedia file
     $I->dontSeeResponseContainsJson(['path' => 'folder4']);
     $I->seeResponseJsonMatchesXpath('//albuminfo/path', '');
     $I->seeResponseContainsJson(['locationhaschanged' => false]);
 }