Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2016-05-12 13:07:06 +0300
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-05-12 13:07:06 +0300
commitb34bacd0718fa24c67a8ef0aa6f3b824a9b525bb (patch)
tree904bda1263850905c2c8164f4f1367d8c7bc9d46 /apps/files/tests
parenteea98f1d74daf2a20c6b08b9df743f0478c48103 (diff)
Move Files app to PSR-4 (#24569)
* Move lib/ of Files app to PSR-4 * Move tests to PSR-4
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/ActivityTest.php (renamed from apps/files/tests/activitytest.php)0
-rw-r--r--apps/files/tests/BackgroundJob/DeleteOrphanedItemsJobTest.php (renamed from apps/files/tests/backgroundjob/DeleteOrphanedItemsJobTest.php)0
-rw-r--r--apps/files/tests/BackgroundJob/ScanFilesTest.php (renamed from apps/files/tests/backgroundjob/ScanFilesTest.php)0
-rw-r--r--apps/files/tests/Command/DeleteOrphanedFilesTest.php (renamed from apps/files/tests/command/deleteorphanedfilestest.php)0
-rw-r--r--apps/files/tests/Controller/ApiControllerTest.php (renamed from apps/files/tests/controller/apicontrollertest.php)0
-rw-r--r--apps/files/tests/Controller/ViewControllerTest.php (renamed from apps/files/tests/controller/ViewControllerTest.php)1
-rw-r--r--apps/files/tests/HelperTest.php (renamed from apps/files/tests/helper.php)6
-rw-r--r--apps/files/tests/Service/TagServiceTest.php (renamed from apps/files/tests/service/tagservice.php)14
8 files changed, 10 insertions, 11 deletions
diff --git a/apps/files/tests/activitytest.php b/apps/files/tests/ActivityTest.php
index bc062dd0542..bc062dd0542 100644
--- a/apps/files/tests/activitytest.php
+++ b/apps/files/tests/ActivityTest.php
diff --git a/apps/files/tests/backgroundjob/DeleteOrphanedItemsJobTest.php b/apps/files/tests/BackgroundJob/DeleteOrphanedItemsJobTest.php
index e802a248a9b..e802a248a9b 100644
--- a/apps/files/tests/backgroundjob/DeleteOrphanedItemsJobTest.php
+++ b/apps/files/tests/BackgroundJob/DeleteOrphanedItemsJobTest.php
diff --git a/apps/files/tests/backgroundjob/ScanFilesTest.php b/apps/files/tests/BackgroundJob/ScanFilesTest.php
index eab28071b70..eab28071b70 100644
--- a/apps/files/tests/backgroundjob/ScanFilesTest.php
+++ b/apps/files/tests/BackgroundJob/ScanFilesTest.php
diff --git a/apps/files/tests/command/deleteorphanedfilestest.php b/apps/files/tests/Command/DeleteOrphanedFilesTest.php
index ff29942bc4a..ff29942bc4a 100644
--- a/apps/files/tests/command/deleteorphanedfilestest.php
+++ b/apps/files/tests/Command/DeleteOrphanedFilesTest.php
diff --git a/apps/files/tests/controller/apicontrollertest.php b/apps/files/tests/Controller/ApiControllerTest.php
index 2eba7d62feb..2eba7d62feb 100644
--- a/apps/files/tests/controller/apicontrollertest.php
+++ b/apps/files/tests/Controller/ApiControllerTest.php
diff --git a/apps/files/tests/controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php
index 4e4e88043e4..affcdb53a4b 100644
--- a/apps/files/tests/controller/ViewControllerTest.php
+++ b/apps/files/tests/Controller/ViewControllerTest.php
@@ -26,6 +26,7 @@ namespace OCA\Files\Tests\Controller;
use OCA\Files\Controller\ViewController;
use OCP\AppFramework\Http;
+use OCP\IUser;
use OCP\Template;
use Test\TestCase;
use OCP\IRequest;
diff --git a/apps/files/tests/helper.php b/apps/files/tests/HelperTest.php
index 654ec8332ed..d2d52b4f8a3 100644
--- a/apps/files/tests/helper.php
+++ b/apps/files/tests/HelperTest.php
@@ -23,12 +23,12 @@
*
*/
-use OCA\Files;
+use OCA\Files\Tests;
/**
- * Class Test_Files_Helper
+ * Class Helper
*/
-class Test_Files_Helper extends \Test\TestCase {
+class HelperTest extends \Test\TestCase {
private function makeFileInfo($name, $size, $mtime, $isDir = false) {
return new \OC\Files\FileInfo(
diff --git a/apps/files/tests/service/tagservice.php b/apps/files/tests/Service/TagServiceTest.php
index 5fcf64b1352..3f210b500ff 100644
--- a/apps/files/tests/service/tagservice.php
+++ b/apps/files/tests/Service/TagServiceTest.php
@@ -20,9 +20,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-namespace OCA\Files;
+namespace OCA\Files\Tests\Service;
-use \OCA\Files\Service\TagService;
+use OCA\Files\Service\TagService;
/**
* Class TagServiceTest
@@ -55,13 +55,11 @@ class TagServiceTest extends \Test\TestCase {
protected function setUp() {
parent::setUp();
- $this->user = $this->getUniqueId('user');
+ $this->user = $this->getUniqueID('user');
\OC::$server->getUserManager()->createUser($this->user, 'test');
\OC_User::setUserId($this->user);
\OC_Util::setupFS($this->user);
- /**
- * @var \OCP\IUser
- */
+ /** @var \OCP\IUser */
$user = new \OC\User\User($this->user, null);
/**
* @var \OCP\IUserSession
@@ -105,12 +103,12 @@ class TagServiceTest extends \Test\TestCase {
$this->assertEquals(array($fileId), $this->tagger->getIdsForTag($tag2));
// remove tag
- $result = $this->tagService->updateFileTags('subdir/test.txt', array($tag2));
+ $this->tagService->updateFileTags('subdir/test.txt', array($tag2));
$this->assertEquals(array(), $this->tagger->getIdsForTag($tag1));
$this->assertEquals(array($fileId), $this->tagger->getIdsForTag($tag2));
// clear tags
- $result = $this->tagService->updateFileTags('subdir/test.txt', array());
+ $this->tagService->updateFileTags('subdir/test.txt', array());
$this->assertEquals(array(), $this->tagger->getIdsForTag($tag1));
$this->assertEquals(array(), $this->tagger->getIdsForTag($tag2));