예제 #1
0
 /**
  * @param \Step\Api\User $I
  */
 private function tryToGetAValidConfig($I, $params = null)
 {
     if (!$params) {
         $params = $this->params;
     }
     $I->getUserCredentialsAndUseHttpAuthentication();
     $I->sendGET($this->apiUrl, $params);
     $I->seeResponseCodeIs(200);
     $I->seeResponseIsJson();
 }
예제 #2
0
 public function getListOfForbiddenPath(\Step\Api\User $I)
 {
     $params = $this->params;
     // This folder contains a .nomedia file
     $params['location'] = 'folder4';
     $I->am('an app');
     $I->wantTo('get the list of files of a folder which contains the .nomedia file');
     $I->getUserCredentialsAndUseHttpAuthentication();
     $I->sendGET($this->apiUrl, $params);
     $I->seeResponseCodeIs(403);
     $I->seeResponseIsJson();
     $I->seeResponseContainsJson(['message' => 'Album is private or unavailable']);
 }