]> source.dussan.org Git - nextcloud-server.git/commitdiff
Change to using OC_User::setUserID() instead of OC::'
authortomneedham <tom@owncloud.com>
Sat, 22 Feb 2014 17:57:48 +0000 (17:57 +0000)
committertomneedham <tom@owncloud.com>
Sat, 22 Feb 2014 17:57:48 +0000 (17:57 +0000)
tests/lib/ocs/privatedata.php

index ea8413734f17ce916ba906b7e16dafa331af0113..83fb7f18e9f6825351df5c63fe33d288573e5949 100644 (file)
@@ -26,7 +26,7 @@ class Test_OC_OCS_Privatedata extends PHPUnit_Framework_TestCase
        private $appKey;
 
        public function setUp() {
-               \OC::$session->set('user_id', 'user1');
+               \OC_User::setUserID('user1');
                $this->appKey = uniqid('app');
        }