summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-19 08:41:01 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-19 08:41:01 +0200
commitb1458d590dbd4bfbaf64c3429ec441a82c074f40 (patch)
treecc6b49b52923dcc5a71a700e0681af250cc43595 /tests
parent7ca5b35379144d868a36f10c237c78de56f4ed5a (diff)
downloadnextcloud-server-b1458d590dbd4bfbaf64c3429ec441a82c074f40.tar.gz
nextcloud-server-b1458d590dbd4bfbaf64c3429ec441a82c074f40.zip
Fix namespaces and class names in tests/lib/files/
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/cache/cache.php3
-rw-r--r--tests/lib/files/node/IntegrationTest.php (renamed from tests/lib/files/node/integration.php)2
-rw-r--r--tests/lib/files/objectstore/SwiftTest.php (renamed from tests/lib/files/objectstore/swift.php)14
-rw-r--r--tests/lib/files/objectstore/noopscanner.php2
-rw-r--r--tests/lib/files/pathverificationtest.php2
-rw-r--r--tests/lib/files/storage/wrapper/availability.php1
-rw-r--r--tests/lib/files/type/DetectionTest.php (renamed from tests/lib/files/type/detection.php)0
-rw-r--r--tests/lib/files/type/loadertest.php2
8 files changed, 13 insertions, 13 deletions
diff --git a/tests/lib/files/cache/cache.php b/tests/lib/files/cache/cache.php
index 54aa7ad789a..3201e2d03fe 100644
--- a/tests/lib/files/cache/cache.php
+++ b/tests/lib/files/cache/cache.php
@@ -8,7 +8,6 @@
namespace Test\Files\Cache;
-use PHPUnit_Framework_MockObject_MockObject;
class LongId extends \OC\Files\Storage\Temporary {
public function getId() {
@@ -491,7 +490,7 @@ class Cache extends \Test\TestCase {
$folderWith0308 = "\x53\x63\x68\x6f\xcc\x88\x6e";
/**
- * @var \OC\Files\Cache\Cache | PHPUnit_Framework_MockObject_MockObject $cacheMock
+ * @var \OC\Files\Cache\Cache | \PHPUnit_Framework_MockObject_MockObject $cacheMock
*/
$cacheMock = $this->getMock('\OC\Files\Cache\Cache', array('normalize'), array($this->storage), '', true);
diff --git a/tests/lib/files/node/integration.php b/tests/lib/files/node/IntegrationTest.php
index addc7e98f48..e11f9bca4ea 100644
--- a/tests/lib/files/node/integration.php
+++ b/tests/lib/files/node/IntegrationTest.php
@@ -20,7 +20,7 @@ use OC\User\User;
*
* @package Test\Files\Node
*/
-class IntegrationTests extends \Test\TestCase {
+class IntegrationTest extends \Test\TestCase {
/**
* @var \OC\Files\Node\Root $root
*/
diff --git a/tests/lib/files/objectstore/swift.php b/tests/lib/files/objectstore/SwiftTest.php
index a63f5844145..4731936627d 100644
--- a/tests/lib/files/objectstore/swift.php
+++ b/tests/lib/files/objectstore/SwiftTest.php
@@ -18,22 +18,22 @@
*
*/
-namespace OCA\ObjectStore\Tests\Unit;
+namespace Test\Files\Cache\ObjectStore;
use OC\Files\ObjectStore\ObjectStoreStorage;
-use OC\Files\ObjectStore\Swift as ObjectStoreToTest;
+use OC\Files\ObjectStore\Swift;
/**
- * Class Swift
+ * Class SwiftTest
*
* @group DB
*
- * @package OCA\ObjectStore\Tests\Unit
+ * @package Test\Files\Cache\ObjectStore
*/
-class Swift extends \Test\Files\Storage\Storage {
+class SwiftTest extends \Test\Files\Storage\Storage {
/**
- * @var ObjectStoreToTest
+ * @var Swift
*/
private $objectStorage;
@@ -63,7 +63,7 @@ class Swift extends \Test\Files\Storage\Storage {
\OC_User::setUserId('test');
$config = \OC::$server->getConfig()->getSystemValue('objectstore');
- $this->objectStorage = new ObjectStoreToTest($config['arguments']);
+ $this->objectStorage = new Swift($config['arguments']);
$config['objectstore'] = $this->objectStorage;
$this->instance = new ObjectStoreStorage($config);
}
diff --git a/tests/lib/files/objectstore/noopscanner.php b/tests/lib/files/objectstore/noopscanner.php
index f860c03cb18..fba6619d42b 100644
--- a/tests/lib/files/objectstore/noopscanner.php
+++ b/tests/lib/files/objectstore/noopscanner.php
@@ -9,7 +9,7 @@
* later.
* See the COPYING-README file.
*/
-namespace Test\Files\Cache;
+namespace Test\Files\Cache\ObjectStore;
class NoopScanner extends \Test\TestCase {
/** @var \OC\Files\Storage\Storage $storage */
diff --git a/tests/lib/files/pathverificationtest.php b/tests/lib/files/pathverificationtest.php
index db393ce5e51..ea9859c862c 100644
--- a/tests/lib/files/pathverificationtest.php
+++ b/tests/lib/files/pathverificationtest.php
@@ -17,7 +17,7 @@ use OC\Files\View;
*
* @package Test\Files
*/
-class PathVerification extends \Test\TestCase {
+class PathVerificationTest extends \Test\TestCase {
/**
* @var \OC\Files\View
diff --git a/tests/lib/files/storage/wrapper/availability.php b/tests/lib/files/storage/wrapper/availability.php
index 99d6f7dbe5c..311334a80a3 100644
--- a/tests/lib/files/storage/wrapper/availability.php
+++ b/tests/lib/files/storage/wrapper/availability.php
@@ -18,6 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
namespace Test\Files\Storage\Wrapper;
class Availability extends \Test\TestCase {
diff --git a/tests/lib/files/type/detection.php b/tests/lib/files/type/DetectionTest.php
index 5800f4eb8e3..5800f4eb8e3 100644
--- a/tests/lib/files/type/detection.php
+++ b/tests/lib/files/type/DetectionTest.php
diff --git a/tests/lib/files/type/loadertest.php b/tests/lib/files/type/loadertest.php
index 7f87afd2f4d..a77d672f667 100644
--- a/tests/lib/files/type/loadertest.php
+++ b/tests/lib/files/type/loadertest.php
@@ -19,7 +19,7 @@
*
*/
-namespace OC\Files\Type;
+namespace Test\Files\Type;
use \OC\Files\Type\Loader;
use \OCP\IDBConnection;