From b57f3126eb445e5dfdc8154412a2fb40444c4641 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 12 May 2016 09:49:15 +0200 Subject: [PATCH] Move files_versions to PSR-4 (#24571) --- apps/files_versions/appinfo/info.xml | 1 + .../{appinfo/application.php => lib/AppInfo/Application.php} | 0 .../expireversions.php => BackgroundJob/ExpireVersions.php} | 0 .../files_versions/lib/{capabilities.php => Capabilities.php} | 0 .../{command/cleanup.php => lib/Command/CleanUp.php} | 0 .../{command/expire.php => lib/Command/Expire.php} | 0 apps/files_versions/lib/{expiration.php => Expiration.php} | 0 apps/files_versions/lib/{hooks.php => Hooks.php} | 0 apps/files_versions/lib/{storage.php => Storage.php} | 0 .../{command/cleanuptest.php => Command/CleanupTest.php} | 0 .../tests/{command/expiretest.php => Command/ExpireTest.php} | 0 .../tests/{expirationtest.php => ExpirationTest.php} | 2 +- .../files_versions/tests/{versions.php => VersioningTest.php} | 4 +++- 13 files changed, 5 insertions(+), 2 deletions(-) rename apps/files_versions/{appinfo/application.php => lib/AppInfo/Application.php} (100%) rename apps/files_versions/lib/{backgroundjob/expireversions.php => BackgroundJob/ExpireVersions.php} (100%) rename apps/files_versions/lib/{capabilities.php => Capabilities.php} (100%) rename apps/files_versions/{command/cleanup.php => lib/Command/CleanUp.php} (100%) rename apps/files_versions/{command/expire.php => lib/Command/Expire.php} (100%) rename apps/files_versions/lib/{expiration.php => Expiration.php} (100%) rename apps/files_versions/lib/{hooks.php => Hooks.php} (100%) rename apps/files_versions/lib/{storage.php => Storage.php} (100%) rename apps/files_versions/tests/{command/cleanuptest.php => Command/CleanupTest.php} (100%) rename apps/files_versions/tests/{command/expiretest.php => Command/ExpireTest.php} (100%) rename apps/files_versions/tests/{expirationtest.php => ExpirationTest.php} (99%) rename apps/files_versions/tests/{versions.php => VersioningTest.php} (99%) diff --git a/apps/files_versions/appinfo/info.xml b/apps/files_versions/appinfo/info.xml index ad0354a510..c70e58a12b 100644 --- a/apps/files_versions/appinfo/info.xml +++ b/apps/files_versions/appinfo/info.xml @@ -13,6 +13,7 @@ In addition to the expiry of versions, ownCloud’s versions app makes certain n + Files_Versions diff --git a/apps/files_versions/appinfo/application.php b/apps/files_versions/lib/AppInfo/Application.php similarity index 100% rename from apps/files_versions/appinfo/application.php rename to apps/files_versions/lib/AppInfo/Application.php diff --git a/apps/files_versions/lib/backgroundjob/expireversions.php b/apps/files_versions/lib/BackgroundJob/ExpireVersions.php similarity index 100% rename from apps/files_versions/lib/backgroundjob/expireversions.php rename to apps/files_versions/lib/BackgroundJob/ExpireVersions.php diff --git a/apps/files_versions/lib/capabilities.php b/apps/files_versions/lib/Capabilities.php similarity index 100% rename from apps/files_versions/lib/capabilities.php rename to apps/files_versions/lib/Capabilities.php diff --git a/apps/files_versions/command/cleanup.php b/apps/files_versions/lib/Command/CleanUp.php similarity index 100% rename from apps/files_versions/command/cleanup.php rename to apps/files_versions/lib/Command/CleanUp.php diff --git a/apps/files_versions/command/expire.php b/apps/files_versions/lib/Command/Expire.php similarity index 100% rename from apps/files_versions/command/expire.php rename to apps/files_versions/lib/Command/Expire.php diff --git a/apps/files_versions/lib/expiration.php b/apps/files_versions/lib/Expiration.php similarity index 100% rename from apps/files_versions/lib/expiration.php rename to apps/files_versions/lib/Expiration.php diff --git a/apps/files_versions/lib/hooks.php b/apps/files_versions/lib/Hooks.php similarity index 100% rename from apps/files_versions/lib/hooks.php rename to apps/files_versions/lib/Hooks.php diff --git a/apps/files_versions/lib/storage.php b/apps/files_versions/lib/Storage.php similarity index 100% rename from apps/files_versions/lib/storage.php rename to apps/files_versions/lib/Storage.php diff --git a/apps/files_versions/tests/command/cleanuptest.php b/apps/files_versions/tests/Command/CleanupTest.php similarity index 100% rename from apps/files_versions/tests/command/cleanuptest.php rename to apps/files_versions/tests/Command/CleanupTest.php diff --git a/apps/files_versions/tests/command/expiretest.php b/apps/files_versions/tests/Command/ExpireTest.php similarity index 100% rename from apps/files_versions/tests/command/expiretest.php rename to apps/files_versions/tests/Command/ExpireTest.php diff --git a/apps/files_versions/tests/expirationtest.php b/apps/files_versions/tests/ExpirationTest.php similarity index 99% rename from apps/files_versions/tests/expirationtest.php rename to apps/files_versions/tests/ExpirationTest.php index 2dfff19f23..2486b9c85c 100644 --- a/apps/files_versions/tests/expirationtest.php +++ b/apps/files_versions/tests/ExpirationTest.php @@ -24,7 +24,7 @@ namespace OCA\Files_Versions\Tests; use \OCA\Files_Versions\Expiration; -class Expiration_Test extends \Test\TestCase { +class ExpirationTest extends \Test\TestCase { const SECONDS_PER_DAY = 86400; //60*60*24 public function expirationData(){ diff --git a/apps/files_versions/tests/versions.php b/apps/files_versions/tests/VersioningTest.php similarity index 99% rename from apps/files_versions/tests/versions.php rename to apps/files_versions/tests/VersioningTest.php index b8e68cfadf..354ff6ee5e 100644 --- a/apps/files_versions/tests/versions.php +++ b/apps/files_versions/tests/VersioningTest.php @@ -29,6 +29,8 @@ * */ +namespace OCA\Files_Versions\Tests; + require_once __DIR__ . '/../appinfo/app.php'; use OC\Files\Storage\Temporary; @@ -39,7 +41,7 @@ use OC\Files\Storage\Temporary; * * @group DB */ -class Test_Files_Versioning extends \Test\TestCase { +class VersioningTest extends \Test\TestCase { const TEST_VERSIONS_USER = 'test-versions-user'; const TEST_VERSIONS_USER2 = 'test-versions-user2';