summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-21 06:59:50 -0800
committerVincent Petry <pvince81@owncloud.com>2013-11-21 06:59:50 -0800
commitd0265f3388b43e05c40938142dd4b17abbf1dfc8 (patch)
treed97e53084ca611498efafaa3627bd37e0447257f /apps
parent3e1ade4397717ccf45d0916def6559ceb921f8f3 (diff)
parent69e8e7dbd5039652cceb078025248c308ffd0d55 (diff)
downloadnextcloud-server-d0265f3388b43e05c40938142dd4b17abbf1dfc8.tar.gz
nextcloud-server-d0265f3388b43e05c40938142dd4b17abbf1dfc8.zip
Merge pull request #5715 from owncloud/quota-sharing-wrapotherusershome
Quota storage wrapper is now used for all users in sharing mode
Diffstat (limited to 'apps')
-rw-r--r--apps/files/tests/ajax_rename.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/files/tests/ajax_rename.php b/apps/files/tests/ajax_rename.php
index e654255c407..3735b0a49c8 100644
--- a/apps/files/tests/ajax_rename.php
+++ b/apps/files/tests/ajax_rename.php
@@ -22,9 +22,18 @@
*/
class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase {
+ private static $user;
function setUp() {
// mock OC_L10n
+ if (!self::$user) {
+ self::$user = uniqid();
+ }
+ \OC_User::createUser(self::$user, 'password');
+ \OC_User::setUserId(self::$user);
+
+ \OC\Files\Filesystem::init(self::$user, '/' . self::$user . '/files');
+
$l10nMock = $this->getMock('\OC_L10N', array('t'), array(), '', false);
$l10nMock->expects($this->any())
->method('t')
@@ -39,6 +48,12 @@ class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase {
$this->files = new \OCA\Files\App($viewMock, $l10nMock);
}
+ function tearDown() {
+ $result = \OC_User::deleteUser(self::$user);
+ $this->assertTrue($result);
+ \OC\Files\Filesystem::tearDown();
+ }
+
/**
* @brief test rename of file/folder named "Shared"
*/