[Pkg-owncloud-commits] [owncloud] 42/85: Dont backport unit tests for code that isn't backported
David Prévot
taffit at moszumanska.debian.org
Tue Jun 17 19:12:43 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch 6.0
in repository owncloud.
commit e98627d6ab99e58db3c3ecaba1e74746545e31fb
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu Jun 5 10:18:26 2014 +0200
Dont backport unit tests for code that isn't backported
---
tests/lib/files/filesystem.php | 51 ------------------------------------------
1 file changed, 51 deletions(-)
diff --git a/tests/lib/files/filesystem.php b/tests/lib/files/filesystem.php
index 930a252..b0ed065 100644
--- a/tests/lib/files/filesystem.php
+++ b/tests/lib/files/filesystem.php
@@ -226,55 +226,4 @@ class Filesystem extends \PHPUnit_Framework_TestCase {
$path = $arguments['path'];
$this->assertEquals($path, \OC\Files\Filesystem::normalizePath($path)); //the path passed to the hook should already be normalized
}
-
- /**
- * Test that the default cache dir is part of the user's home
- */
- public function testMountDefaultCacheDir() {
- $userId = uniqid('user_');
- $oldCachePath = \OC_Config::getValue('cache_path', '');
- // no cache path configured
- \OC_Config::setValue('cache_path', '');
-
- \OC_User::createUser($userId, $userId);
- \OC\Files\Filesystem::initMountPoints($userId);
-
- $this->assertEquals(
- '/' . $userId . '/',
- \OC\Files\Filesystem::getMountPoint('/' . $userId . '/cache')
- );
- list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath('/' . $userId . '/cache');
- $this->assertTrue($storage->instanceOfStorage('\OC\Files\Storage\Home'));
- $this->assertEquals('cache', $internalPath);
- \OC_User::deleteUser($userId);
-
- \OC_Config::setValue('cache_path', $oldCachePath);
- }
-
- /**
- * Test that an external cache is mounted into
- * the user's home
- */
- public function testMountExternalCacheDir() {
- $userId = uniqid('user_');
-
- $oldCachePath = \OC_Config::getValue('cache_path', '');
- // set cache path to temp dir
- $cachePath = \OC_Helper::tmpFolder() . '/extcache';
- \OC_Config::setValue('cache_path', $cachePath);
-
- \OC_User::createUser($userId, $userId);
- \OC\Files\Filesystem::initMountPoints($userId);
-
- $this->assertEquals(
- '/' . $userId . '/cache/',
- \OC\Files\Filesystem::getMountPoint('/' . $userId . '/cache')
- );
- list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath('/' . $userId . '/cache');
- $this->assertTrue($storage->instanceOfStorage('\OC\Files\Storage\Local'));
- $this->assertEquals('', $internalPath);
- \OC_User::deleteUser($userId);
-
- \OC_Config::setValue('cache_path', $oldCachePath);
- }
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list