Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests/api
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-09-07 01:39:57 +0300
committerOlivier Paroz <github@oparoz.com>2015-09-07 01:39:57 +0300
commita1c882b5fbfc2af2ec2f07353b5ea0112641e6d6 (patch)
tree9ee80c4ddc8abd82b90875d0598dbdb5d7fbbc8b /tests/api
parent490acb9ee85c4358a89a4bb97146b41c7166ef71 (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.php10
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 . ')']
+ );
}
}