diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-13 11:22:28 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-24 08:41:20 +0200 |
commit | 328b3c47d7fdf61b6de3c2d9129d392d3a9f5a87 (patch) | |
tree | 4d7f5eedc7861b40271bcfe1e95cc01d5ed0296d /apps/files_external/tests | |
parent | adcf942901fd567d97dbe105e8f3dfb7cea738e3 (diff) | |
download | nextcloud-server-328b3c47d7fdf61b6de3c2d9129d392d3a9f5a87.tar.gz nextcloud-server-328b3c47d7fdf61b6de3c2d9129d392d3a9f5a87.zip |
Move stuff from outside lib/ to PSR-4
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r-- | apps/files_external/tests/Command/ApplicableTest.php (renamed from apps/files_external/tests/command/applicabletest.php) | 0 | ||||
-rw-r--r-- | apps/files_external/tests/Command/CommandTest.php (renamed from apps/files_external/tests/command/commandtest.php) | 4 | ||||
-rw-r--r-- | apps/files_external/tests/Command/ListCommandTest.php (renamed from apps/files_external/tests/command/listcommandtest.php) | 8 | ||||
-rw-r--r-- | apps/files_external/tests/Controller/GlobalStoragesControllerTest.php (renamed from apps/files_external/tests/controller/globalstoragescontrollertest.php) | 8 | ||||
-rw-r--r-- | apps/files_external/tests/Controller/StoragesControllerTest.php (renamed from apps/files_external/tests/controller/storagescontrollertest.php) | 6 | ||||
-rw-r--r-- | apps/files_external/tests/Controller/UserStoragesControllerTest.php (renamed from apps/files_external/tests/controller/userstoragescontrollertest.php) | 9 | ||||
-rw-r--r-- | apps/files_external/tests/Service/BackendServiceTest.php (renamed from apps/files_external/tests/service/backendservicetest.php) | 0 | ||||
-rw-r--r-- | apps/files_external/tests/Service/DBConfigServiceTest.php (renamed from apps/files_external/tests/service/dbconfigservicetest.php) | 0 | ||||
-rw-r--r-- | apps/files_external/tests/Service/GlobalStoragesServiceTest.php (renamed from apps/files_external/tests/service/globalstoragesservicetest.php) | 10 | ||||
-rw-r--r-- | apps/files_external/tests/Service/StoragesServiceTest.php (renamed from apps/files_external/tests/service/storagesservicetest.php) | 4 | ||||
-rw-r--r-- | apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php (renamed from apps/files_external/tests/service/userglobalstoragesservicetest.php) | 7 | ||||
-rw-r--r-- | apps/files_external/tests/Service/UserStoragesServiceTest.php (renamed from apps/files_external/tests/service/userstoragesservicetest.php) | 9 |
12 files changed, 27 insertions, 38 deletions
diff --git a/apps/files_external/tests/command/applicabletest.php b/apps/files_external/tests/Command/ApplicableTest.php index 64d41f6f245..64d41f6f245 100644 --- a/apps/files_external/tests/command/applicabletest.php +++ b/apps/files_external/tests/Command/ApplicableTest.php diff --git a/apps/files_external/tests/command/commandtest.php b/apps/files_external/tests/Command/CommandTest.php index 9a0afbd3681..73a1ea8315c 100644 --- a/apps/files_external/tests/command/commandtest.php +++ b/apps/files_external/tests/Command/CommandTest.php @@ -32,10 +32,10 @@ use Test\TestCase; abstract class CommandTest extends TestCase { /** * @param StorageConfig[] $mounts - * @return \OCA\Files_external\Service\GlobalStoragesService|\PHPUnit_Framework_MockObject_MockObject + * @return \OCA\Files_External\Service\GlobalStoragesService|\PHPUnit_Framework_MockObject_MockObject */ protected function getGlobalStorageService(array $mounts = []) { - $mock = $this->getMockBuilder('OCA\Files_external\Service\GlobalStoragesService') + $mock = $this->getMockBuilder('OCA\Files_External\Service\GlobalStoragesService') ->disableOriginalConstructor() ->getMock(); diff --git a/apps/files_external/tests/command/listcommandtest.php b/apps/files_external/tests/Command/ListCommandTest.php index 3098906bcc6..1475249ae43 100644 --- a/apps/files_external/tests/command/listcommandtest.php +++ b/apps/files_external/tests/Command/ListCommandTest.php @@ -34,10 +34,10 @@ class ListCommandTest extends CommandTest { * @return \OCA\Files_External\Command\ListCommand|\PHPUnit_Framework_MockObject_MockObject */ private function getInstance() { - /** @var \OCA\Files_external\Service\GlobalStoragesService|\PHPUnit_Framework_MockObject_MockObject $globalService */ - $globalService = $this->getMock('\OCA\Files_external\Service\GlobalStoragesService', null, [], '', false); - /** @var \OCA\Files_external\Service\UserStoragesService|\PHPUnit_Framework_MockObject_MockObject $userService */ - $userService = $this->getMock('\OCA\Files_external\Service\UserStoragesService', null, [], '', false); + /** @var \OCA\Files_External\Service\GlobalStoragesService|\PHPUnit_Framework_MockObject_MockObject $globalService */ + $globalService = $this->getMock('\OCA\Files_External\Service\GlobalStoragesService', null, [], '', false); + /** @var \OCA\Files_External\Service\UserStoragesService|\PHPUnit_Framework_MockObject_MockObject $userService */ + $userService = $this->getMock('\OCA\Files_External\Service\UserStoragesService', null, [], '', false); /** @var \OCP\IUserManager|\PHPUnit_Framework_MockObject_MockObject $userManager */ $userManager = $this->getMock('\OCP\IUserManager'); /** @var \OCP\IUserSession|\PHPUnit_Framework_MockObject_MockObject $userSession */ diff --git a/apps/files_external/tests/controller/globalstoragescontrollertest.php b/apps/files_external/tests/Controller/GlobalStoragesControllerTest.php index 1021300399a..9761a4e23f9 100644 --- a/apps/files_external/tests/controller/globalstoragescontrollertest.php +++ b/apps/files_external/tests/Controller/GlobalStoragesControllerTest.php @@ -20,18 +20,16 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ -namespace OCA\Files_external\Tests\Controller; +namespace OCA\Files_External\Tests\Controller; -use \OCA\Files_external\Controller\GlobalStoragesController; -use \OCA\Files_external\Service\GlobalStoragesService; +use OCA\Files_External\Controller\GlobalStoragesController; use \OCP\AppFramework\Http; -use \OCA\Files_external\NotFoundException; use \OCA\Files_External\Service\BackendService; class GlobalStoragesControllerTest extends StoragesControllerTest { public function setUp() { parent::setUp(); - $this->service = $this->getMockBuilder('\OCA\Files_external\Service\GlobalStoragesService') + $this->service = $this->getMockBuilder('\OCA\Files_External\Service\GlobalStoragesService') ->disableOriginalConstructor() ->getMock(); diff --git a/apps/files_external/tests/controller/storagescontrollertest.php b/apps/files_external/tests/Controller/StoragesControllerTest.php index 4c3c62d5d6f..81625fbbcb9 100644 --- a/apps/files_external/tests/controller/storagescontrollertest.php +++ b/apps/files_external/tests/Controller/StoragesControllerTest.php @@ -19,12 +19,12 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ -namespace OCA\Files_external\Tests\Controller; +namespace OCA\Files_External\Tests\Controller; use \OCP\AppFramework\Http; -use \OCA\Files_external\Controller\GlobalStoragesController; -use \OCA\Files_external\Service\GlobalStoragesService; +use \OCA\Files_External\Controller\GlobalStoragesController; +use \OCA\Files_External\Service\GlobalStoragesService; use \OCA\Files_external\Lib\StorageConfig; use \OCA\Files_external\NotFoundException; diff --git a/apps/files_external/tests/controller/userstoragescontrollertest.php b/apps/files_external/tests/Controller/UserStoragesControllerTest.php index 804b752b6af..ac8d4663740 100644 --- a/apps/files_external/tests/controller/userstoragescontrollertest.php +++ b/apps/files_external/tests/Controller/UserStoragesControllerTest.php @@ -20,13 +20,10 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ -namespace OCA\Files_external\Tests\Controller; +namespace OCA\Files_External\Tests\Controller; -use \OCA\Files_external\Controller\UserStoragesController; -use \OCA\Files_external\Service\UserStoragesService; +use \OCA\Files_External\Controller\UserStoragesController; use \OCP\AppFramework\Http; -use \OCA\Files_external\NotFoundException; -use \OCA\Files_External\Lib\StorageConfig; use \OCA\Files_External\Service\BackendService; class UserStoragesControllerTest extends StoragesControllerTest { @@ -38,7 +35,7 @@ class UserStoragesControllerTest extends StoragesControllerTest { public function setUp() { parent::setUp(); - $this->service = $this->getMockBuilder('\OCA\Files_external\Service\UserStoragesService') + $this->service = $this->getMockBuilder('\OCA\Files_External\Service\UserStoragesService') ->disableOriginalConstructor() ->getMock(); diff --git a/apps/files_external/tests/service/backendservicetest.php b/apps/files_external/tests/Service/BackendServiceTest.php index ba9a1f533f2..ba9a1f533f2 100644 --- a/apps/files_external/tests/service/backendservicetest.php +++ b/apps/files_external/tests/Service/BackendServiceTest.php diff --git a/apps/files_external/tests/service/dbconfigservicetest.php b/apps/files_external/tests/Service/DBConfigServiceTest.php index b088a7078d1..b088a7078d1 100644 --- a/apps/files_external/tests/service/dbconfigservicetest.php +++ b/apps/files_external/tests/Service/DBConfigServiceTest.php diff --git a/apps/files_external/tests/service/globalstoragesservicetest.php b/apps/files_external/tests/Service/GlobalStoragesServiceTest.php index 6cdfbef82d4..b2cc7f59ed4 100644 --- a/apps/files_external/tests/service/globalstoragesservicetest.php +++ b/apps/files_external/tests/Service/GlobalStoragesServiceTest.php @@ -20,13 +20,11 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ -namespace OCA\Files_external\Tests\Service; +namespace OCA\Files_External\Tests\Service; use \OC\Files\Filesystem; -use \OCA\Files_external\Service\GlobalStoragesService; -use \OCA\Files_external\NotFoundException; -use \OCA\Files_external\Lib\StorageConfig; +use \OCA\Files_External\Service\GlobalStoragesService; /** * @group DB @@ -449,8 +447,8 @@ class GlobalStoragesServiceTest extends StoragesServiceTest { $storage->setApplicableGroups($sourceApplicableGroups); $storage = $this->service->addStorage($storage); - $storage->setapplicableUsers($updatedApplicableUsers); - $storage->setapplicableGroups($updatedApplicableGroups); + $storage->setApplicableUsers($updatedApplicableUsers); + $storage->setApplicableGroups($updatedApplicableGroups); // reset calls self::$hookCalls = []; diff --git a/apps/files_external/tests/service/storagesservicetest.php b/apps/files_external/tests/Service/StoragesServiceTest.php index f93c0134814..7cc0d8fad93 100644 --- a/apps/files_external/tests/service/storagesservicetest.php +++ b/apps/files_external/tests/Service/StoragesServiceTest.php @@ -20,7 +20,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ -namespace OCA\Files_external\Tests\Service; +namespace OCA\Files_External\Tests\Service; use \OC\Files\Filesystem; @@ -28,7 +28,7 @@ use \OCA\Files_external\NotFoundException; use \OCA\Files_external\Lib\StorageConfig; use OCA\Files_External\Service\BackendService; use OCA\Files_External\Service\DBConfigService; -use OCA\Files_external\Service\StoragesService; +use OCA\Files_External\Service\StoragesService; class CleaningDBConfig extends DBConfigService { private $mountIds = []; diff --git a/apps/files_external/tests/service/userglobalstoragesservicetest.php b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php index baecf143c66..812c12392fc 100644 --- a/apps/files_external/tests/service/userglobalstoragesservicetest.php +++ b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php @@ -23,11 +23,8 @@ namespace OCA\Files_External\Tests\Service; use OCA\Files_external\NotFoundException; -use OCA\Files_external\Service\StoragesService; -use \OCA\Files_External\Service\UserGlobalStoragesService; -use \OCP\IGroupManager; - -use \OCA\Files_External\Lib\StorageConfig; +use OCA\Files_External\Service\StoragesService; +use OCA\Files_External\Service\UserGlobalStoragesService; use OCP\IUser; use Test\Traits\UserTrait; diff --git a/apps/files_external/tests/service/userstoragesservicetest.php b/apps/files_external/tests/Service/UserStoragesServiceTest.php index 37423cb8d74..21696878a01 100644 --- a/apps/files_external/tests/service/userstoragesservicetest.php +++ b/apps/files_external/tests/Service/UserStoragesServiceTest.php @@ -20,14 +20,13 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ -namespace OCA\Files_external\Tests\Service; +namespace OCA\Files_External\Tests\Service; use \OC\Files\Filesystem; -use OCA\Files_external\Service\GlobalStoragesService; -use OCA\Files_external\Service\StoragesService; -use \OCA\Files_external\Service\UserStoragesService; -use \OCA\Files_external\NotFoundException; +use OCA\Files_External\Service\GlobalStoragesService; +use OCA\Files_External\Service\StoragesService; +use OCA\Files_External\Service\UserStoragesService; use \OCA\Files_external\Lib\StorageConfig; use Test\Traits\UserTrait; |