summaryrefslogtreecommitdiffstats
path: root/tests/lib/share
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-07-16 19:40:22 +0200
committerRobin Appelman <icewind@owncloud.com>2014-08-29 10:22:21 +0200
commitf551917a3ca2cedf748337646ed4b1d398ac8437 (patch)
treeeccf53eb77c44019ef59e90c41af43297993ddf9 /tests/lib/share
parented2424c3822a3470065788ff113a3807d24d80dc (diff)
downloadnextcloud-server-f551917a3ca2cedf748337646ed4b1d398ac8437.tar.gz
nextcloud-server-f551917a3ca2cedf748337646ed4b1d398ac8437.zip
kill OC::$session
maintain deprecated \OC::$session when getting or setting the session via the server container or UserSession restore order os OC::$session and OC::$CLI remove unneded initialization of dummy session write back session when $useCustomSession is true log warning when deprecated app is used
Diffstat (limited to 'tests/lib/share')
-rw-r--r--tests/lib/share/share.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php
index 59056003fca..0a8d7856915 100644
--- a/tests/lib/share/share.php
+++ b/tests/lib/share/share.php
@@ -740,7 +740,7 @@ class Test_Share extends PHPUnit_Framework_TestCase {
* @param $item
*/
public function testCheckPasswordProtectedShare($expected, $item) {
- \OC::$session->set('public_link_authenticated', 100);
+ \OC::$server->getSession()->set('public_link_authenticated', 100);
$result = \OCP\Share::checkPasswordProtectedShare($item);
$this->assertEquals($expected, $result);
}
@@ -767,8 +767,8 @@ class Test_Share extends PHPUnit_Framework_TestCase {
return true;
}
- if ( \OC::$session->exists('public_link_authenticated')
- && \OC::$session->get('public_link_authenticated') === $linkItem['id'] ) {
+ if ( \OC::$server->getSession()->exists('public_link_authenticated')
+ && \OC::$server->getSession()->get('public_link_authenticated') === $linkItem['id'] ) {
return true;
}
* */