Beispiel #1
0
 public function getPreviewOfBrokenFile(\Step\Api\User $I)
 {
     $I->am('an app');
     $I->wantTo('get the preview of a broken file');
     $I->expect('an 500 status and an error message');
     $I->getUserCredentialsAndUseHttpAuthentication();
     $data = $I->getFilesDataForFolder('');
     $file = $data['testimage-corrupt.jpg'];
     $url = $this->apiUrl . '/' . $file['id'] . '/1920/1080';
     $I->sendGET($url);
     $I->seeResponseCodeIs(500);
     $I->seeResponseContainsJson(['success' => false]);
 }