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
diff options
context:
space:
mode:
authorVincent Petry <PVince81@owncloud.com>2016-07-07 09:21:31 +0300
committerVincent Petry <PVince81@owncloud.com>2016-07-07 09:40:28 +0300
commit00c4210ee8cf4afd141225c44dba6f61f5737b92 (patch)
treea88f16d3adb63e5d835d5d063e9a57ee79746cd0 /tests
parent705fdd0353f8b81a2c5933422d70a5e0316bafcc (diff)
Fix for string id
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/middleware/EnvCheckMiddlewareTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/middleware/EnvCheckMiddlewareTest.php b/tests/unit/middleware/EnvCheckMiddlewareTest.php
index c744c492..aaef1922 100644
--- a/tests/unit/middleware/EnvCheckMiddlewareTest.php
+++ b/tests/unit/middleware/EnvCheckMiddlewareTest.php
@@ -214,8 +214,8 @@ class EnvCheckMiddlewareTest extends \Test\GalleryUnitTest {
public function testCheckSessionAfterPasswordEntry() {
$share = $this->mockShare('file', 'tester', 'image.png');
- $this->mockSessionExists($share->getId());
- $this->mockSessionWithShareId($share->getId());
+ $this->mockSessionExists((string)$share->getId());
+ $this->mockSessionWithShareId((string)$share->getId());
parent::invokePrivate($this->middleware, 'checkSession', [$share]);
}
@@ -365,8 +365,8 @@ class EnvCheckMiddlewareTest extends \Test\GalleryUnitTest {
Constants::PERMISSION_READ, $wrongPassword
);
- $this->mockSessionExists($share->getId());
- $this->mockSessionWithShareId($share->getId());
+ $this->mockSessionExists((string)$share->getId());
+ $this->mockSessionWithShareId((string)$share->getId());
parent::invokePrivate($this->middleware, 'checkAuthorisation', [$share, $password]);
}