diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-07 01:39:57 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-07 01:39:57 +0300 |
commit | a1c882b5fbfc2af2ec2f07353b5ea0112641e6d6 (patch) | |
tree | 9ee80c4ddc8abd82b90875d0598dbdb5d7fbbc8b /tests/api | |
parent | 490acb9ee85c4358a89a4bb97146b41c7166ef71 (diff) |
Use exceptions more in Preview chain
* jsonhttperror trait is now named httperror
* Moved ServiceTest to GalleryUnitTest
* Move some common test methods to GalleryUnitTest
* Additional unit tests for PreviewService
Diffstat (limited to 'tests/api')
-rw-r--r-- | tests/api/GetFilesCest.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/api/GetFilesCest.php b/tests/api/GetFilesCest.php index 378d8689..45afd3d8 100644 --- a/tests/api/GetFilesCest.php +++ b/tests/api/GetFilesCest.php @@ -132,14 +132,18 @@ class GetFilesCest { $params['location'] = 'folder4'; $I->am('an app'); - $I->wantTo('get the list of files of a folder which contains the .nomedia file' + $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); + $statusCode = 403; + $I->seeResponseCodeIs($statusCode); $I->seeResponseIsJson(); - $I->seeResponseContainsJson(['message' => 'Album is private or unavailable']); + $I->seeResponseContainsJson( + ['message' => 'Album is private or unavailable (' . $statusCode . ')'] + ); } } |