]> git.mxchange.org Git - friendica.git/commitdiff
rename StorageConfigTest to StorageConfigTestCase
authorArt4 <art4@wlabs.de>
Sun, 15 Dec 2024 21:32:23 +0000 (21:32 +0000)
committerArt4 <art4@wlabs.de>
Sun, 15 Dec 2024 21:32:23 +0000 (21:32 +0000)
tests/StorageConfigTestCase.php [new file with mode: 0644]
tests/src/Core/Storage/FilesystemStorageConfigTest.php
tests/src/Core/Storage/StorageConfigTest.php [deleted file]

diff --git a/tests/StorageConfigTestCase.php b/tests/StorageConfigTestCase.php
new file mode 100644 (file)
index 0000000..4b06a8e
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+
+// Copyright (C) 2010-2024, the Friendica project
+// SPDX-FileCopyrightText: 2010-2024 the Friendica project
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+namespace Friendica\Test;
+
+use Friendica\Core\Storage\Capability\ICanConfigureStorage;
+use Friendica\Test\MockedTestCase;
+
+abstract class StorageConfigTestCase extends MockedTestCase
+{
+       /** @return ICanConfigureStorage */
+       abstract protected function getInstance();
+
+       abstract protected function assertOption(ICanConfigureStorage $storage);
+
+       /**
+        * Test if the "getOption" is asserted
+        */
+       public function testGetOptions()
+       {
+               $instance = $this->getInstance();
+
+               $this->assertOption($instance);
+       }
+}
index 8cbf3e97c8a3cc654b48cd9f4d08436608f3b054..390266f5654b43199bd1e370135d34a7759b17eb 100644 (file)
@@ -11,11 +11,12 @@ use Friendica\Core\Config\Capability\IManageConfigValues;
 use Friendica\Core\L10n;
 use Friendica\Core\Storage\Capability\ICanConfigureStorage;
 use Friendica\Core\Storage\Type\FilesystemConfig;
+use Friendica\Test\StorageConfigTestCase;
 use Friendica\Test\Util\VFSTrait;
 use Mockery\MockInterface;
 use org\bovigo\vfs\vfsStream;
 
-class FilesystemStorageConfigTest extends StorageConfigTest
+class FilesystemStorageConfigTest extends StorageConfigTestCase
 {
        use VFSTrait;
 
diff --git a/tests/src/Core/Storage/StorageConfigTest.php b/tests/src/Core/Storage/StorageConfigTest.php
deleted file mode 100644 (file)
index 78a5e39..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-// Copyright (C) 2010-2024, the Friendica project
-// SPDX-FileCopyrightText: 2010-2024 the Friendica project
-//
-// SPDX-License-Identifier: AGPL-3.0-or-later
-
-namespace Friendica\Test\src\Core\Storage;
-
-use Friendica\Core\Storage\Capability\ICanConfigureStorage;
-use Friendica\Test\MockedTestCase;
-
-abstract class StorageConfigTest extends MockedTestCase
-{
-       /** @return ICanConfigureStorage */
-       abstract protected function getInstance();
-
-       abstract protected function assertOption(ICanConfigureStorage $storage);
-
-       /**
-        * Test if the "getOption" is asserted
-        */
-       public function testGetOptions()
-       {
-               $instance = $this->getInstance();
-
-               $this->assertOption($instance);
-       }
-}