diff --git a/tests/src/Core/Cache/CacheTest.php b/tests/CacheTestCase.php similarity index 98% rename from tests/src/Core/Cache/CacheTest.php rename to tests/CacheTestCase.php index 47c5a7ccca..c3db14b274 100644 --- a/tests/src/Core/Cache/CacheTest.php +++ b/tests/CacheTestCase.php @@ -5,13 +5,13 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -namespace Friendica\Test\src\Core\Cache; +namespace Friendica\Test; use Friendica\Core\Cache\Capability\ICanCache; use Friendica\Test\MockedTestCase; use Friendica\Util\PidFile; -abstract class CacheTest extends MockedTestCase +abstract class CacheTestCase extends MockedTestCase { /** * @var int Start time of the mock (used for time operations) diff --git a/tests/src/Console/ConsoleTest.php b/tests/ConsoleTestCase.php similarity index 90% rename from tests/src/Console/ConsoleTest.php rename to tests/ConsoleTestCase.php index 5384076c73..05febcd735 100644 --- a/tests/src/Console/ConsoleTest.php +++ b/tests/ConsoleTestCase.php @@ -5,13 +5,13 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -namespace Friendica\Test\src\Console; +namespace Friendica\Test; use Asika\SimpleConsole\Console; use Friendica\Test\MockedTestCase; use Friendica\Test\Util\Intercept; -abstract class ConsoleTest extends MockedTestCase +abstract class ConsoleTestCase extends MockedTestCase { /** * @var array The default argv for a Console Instance diff --git a/tests/src/Core/Lock/LockTest.php b/tests/LockTestCase.php similarity index 98% rename from tests/src/Core/Lock/LockTest.php rename to tests/LockTestCase.php index c32f50e2f6..9ce86497b7 100644 --- a/tests/src/Core/Lock/LockTest.php +++ b/tests/LockTestCase.php @@ -5,12 +5,12 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -namespace Friendica\Test\src\Core\Lock; +namespace Friendica\Test; use Friendica\Core\Lock\Capability\ICanLock; use Friendica\Test\MockedTestCase; -abstract class LockTest extends MockedTestCase +abstract class LockTestCase extends MockedTestCase { /** * @var int Start time of the mock (used for time operations) diff --git a/tests/src/Core/Logger/LoggerDataTrait.php b/tests/LoggerDataTrait.php similarity index 96% rename from tests/src/Core/Logger/LoggerDataTrait.php rename to tests/LoggerDataTrait.php index dd41bf890d..229a1997ea 100644 --- a/tests/src/Core/Logger/LoggerDataTrait.php +++ b/tests/LoggerDataTrait.php @@ -5,7 +5,7 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -namespace Friendica\Test\src\Core\Logger; +namespace Friendica\Test; trait LoggerDataTrait { diff --git a/tests/src/Core/Logger/AbstractLoggerTest.php b/tests/LoggerTestCase.php similarity index 97% rename from tests/src/Core/Logger/AbstractLoggerTest.php rename to tests/LoggerTestCase.php index b1a793d41f..a31ba5d6a9 100644 --- a/tests/src/Core/Logger/AbstractLoggerTest.php +++ b/tests/LoggerTestCase.php @@ -5,7 +5,7 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -namespace Friendica\Test\src\Core\Logger; +namespace Friendica\Test; use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Core\Logger\Util\Introspection; @@ -14,7 +14,7 @@ use Mockery\MockInterface; use Psr\Log\LoggerInterface; use Psr\Log\LogLevel; -abstract class AbstractLoggerTest extends MockedTestCase +abstract class LoggerTestCase extends MockedTestCase { use LoggerDataTrait; diff --git a/tests/src/Core/Cache/MemoryCacheTest.php b/tests/MemoryCacheTestCase.php similarity index 97% rename from tests/src/Core/Cache/MemoryCacheTest.php rename to tests/MemoryCacheTestCase.php index 2e24e29c06..7563ff701b 100644 --- a/tests/src/Core/Cache/MemoryCacheTest.php +++ b/tests/MemoryCacheTestCase.php @@ -5,12 +5,12 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -namespace Friendica\Test\src\Core\Cache; +namespace Friendica\Test; use Exception; use Friendica\Core\Cache\Capability\ICanCacheInMemory; -abstract class MemoryCacheTest extends CacheTest +abstract class MemoryCacheTestCase extends CacheTestCase { /** * @var \Friendica\Core\Cache\Capability\ICanCacheInMemory diff --git a/tests/src/Core/PConfig/PConfigTest.php b/tests/PConfigTestCase.php similarity index 98% rename from tests/src/Core/PConfig/PConfigTest.php rename to tests/PConfigTestCase.php index 944f7e5ade..1e1bba4fb7 100644 --- a/tests/src/Core/PConfig/PConfigTest.php +++ b/tests/PConfigTestCase.php @@ -5,17 +5,16 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -namespace Friendica\Test\src\Core\PConfig; +namespace Friendica\Test; use DMS\PHPUnitExtensions\ArraySubset\ArraySubsetAsserts; use Friendica\Core\PConfig\Type\AbstractPConfigValues; use Friendica\Core\PConfig\Repository\PConfig as PConfigModel; use Friendica\Core\PConfig\ValueObject\Cache; -use Friendica\Test\MockedTestCase; use Mockery; use Mockery\MockInterface; -abstract class PConfigTest extends MockedTestCase +abstract class PConfigTestCase extends MockedTestCase { use ArraySubsetAsserts; diff --git a/tests/src/Core/Storage/StorageConfigTest.php b/tests/StorageConfigTestCase.php similarity index 85% rename from tests/src/Core/Storage/StorageConfigTest.php rename to tests/StorageConfigTestCase.php index 78a5e396f6..4b06a8ec59 100644 --- a/tests/src/Core/Storage/StorageConfigTest.php +++ b/tests/StorageConfigTestCase.php @@ -5,12 +5,12 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -namespace Friendica\Test\src\Core\Storage; +namespace Friendica\Test; use Friendica\Core\Storage\Capability\ICanConfigureStorage; use Friendica\Test\MockedTestCase; -abstract class StorageConfigTest extends MockedTestCase +abstract class StorageConfigTestCase extends MockedTestCase { /** @return ICanConfigureStorage */ abstract protected function getInstance(); diff --git a/tests/src/Core/Storage/StorageTest.php b/tests/StorageTestCase.php similarity index 95% rename from tests/src/Core/Storage/StorageTest.php rename to tests/StorageTestCase.php index 9816db914c..8a2ffda446 100644 --- a/tests/src/Core/Storage/StorageTest.php +++ b/tests/StorageTestCase.php @@ -5,14 +5,14 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -namespace Friendica\Test\src\Core\Storage; +namespace Friendica\Test; use Friendica\Core\Storage\Capability\ICanReadFromStorage; use Friendica\Core\Storage\Capability\ICanWriteToStorage; use Friendica\Core\Storage\Exception\ReferenceStorageException; use Friendica\Test\MockedTestCase; -abstract class StorageTest extends MockedTestCase +abstract class StorageTestCase extends MockedTestCase { /** @return ICanWriteToStorage */ abstract protected function getInstance(); diff --git a/tests/src/Console/AutomaticInstallationConsoleTest.php b/tests/src/Console/AutomaticInstallationConsoleTest.php index c5d466eb11..0c2ffe1072 100644 --- a/tests/src/Console/AutomaticInstallationConsoleTest.php +++ b/tests/src/Console/AutomaticInstallationConsoleTest.php @@ -16,6 +16,7 @@ use Friendica\Core\L10n; use Friendica\Core\Logger; use Friendica\Database\Database; use Friendica\DI; +use Friendica\Test\ConsoleTestCase; use Friendica\Test\Util\RendererMockTrait; use Friendica\Test\Util\VFSTrait; use Mockery; @@ -24,7 +25,7 @@ use org\bovigo\vfs\vfsStream; use org\bovigo\vfs\vfsStreamFile; use Psr\Log\NullLogger; -class AutomaticInstallationConsoleTest extends ConsoleTest +class AutomaticInstallationConsoleTest extends ConsoleTestCase { use VFSTrait; use RendererMockTrait; @@ -273,7 +274,7 @@ Creating config file... Checking database... [Error] -------- -Could not connect to database.: +Could not connect to database.: FIN; @@ -633,12 +634,12 @@ Options -d|--dbdata The name of the mysql/mariadb database (env MYSQL_DATABASE) -U|--dbuser The username of the mysql/mariadb database login (env MYSQL_USER or MYSQL_USERNAME) -P|--dbpass The password of the mysql/mariadb database login (env MYSQL_PASSWORD) - -U|--url The full base URL of Friendica - f.e. 'https://friendica.local/sub' (env FRIENDICA_URL) + -U|--url The full base URL of Friendica - f.e. 'https://friendica.local/sub' (env FRIENDICA_URL) -B|--phppath The path of the PHP binary (env FRIENDICA_PHP_PATH) -b|--basepath The basepath of Friendica (env FRIENDICA_BASE_PATH) -t|--tz The timezone of Friendica (env FRIENDICA_TZ) -L|--lang The language of Friendica (env FRIENDICA_LANG) - + Environment variables MYSQL_HOST The host of the mysql/mariadb database (mandatory if mysql and environment is used) MYSQL_PORT The port of the mysql/mariadb database @@ -651,7 +652,7 @@ Environment variables FRIENDICA_ADMIN_MAIL The admin email address of Friendica (this email will be used for admin access) FRIENDICA_TZ The timezone of Friendica FRIENDICA_LANG The langauge of Friendica - + Examples bin/console autoinstall -f 'input.config.php Installs Friendica with the prepared 'input.config.php' file diff --git a/tests/src/Console/ConfigConsoleTest.php b/tests/src/Console/ConfigConsoleTest.php index efcfd1fb1f..3c983e04af 100644 --- a/tests/src/Console/ConfigConsoleTest.php +++ b/tests/src/Console/ConfigConsoleTest.php @@ -11,11 +11,12 @@ use Friendica\App; use Friendica\App\Mode; use Friendica\Console\Config; use Friendica\Core\Config\Capability\IManageConfigValues; +use Friendica\Test\ConsoleTestCase; use Mockery; use Mockery\LegacyMockInterface; use Mockery\MockInterface; -class ConfigConsoleTest extends ConsoleTest +class ConfigConsoleTest extends ConsoleTestCase { /** * @var App\Mode|MockInterface $appMode diff --git a/tests/src/Console/LockConsoleTest.php b/tests/src/Console/LockConsoleTest.php index 17fda1150b..d059de696f 100644 --- a/tests/src/Console/LockConsoleTest.php +++ b/tests/src/Console/LockConsoleTest.php @@ -11,10 +11,11 @@ use Friendica\App; use Friendica\App\Mode; use Friendica\Console\Lock; use Friendica\Core\Lock\Capability\ICanLock; +use Friendica\Test\ConsoleTestCase; use Mockery; use Mockery\MockInterface; -class LockConsoleTest extends ConsoleTest +class LockConsoleTest extends ConsoleTestCase { /** * @var App\Mode|MockInterface $appMode diff --git a/tests/src/Console/ServerBlockConsoleTest.php b/tests/src/Console/ServerBlockConsoleTest.php index 121e071e2a..cbbb8bdb39 100644 --- a/tests/src/Console/ServerBlockConsoleTest.php +++ b/tests/src/Console/ServerBlockConsoleTest.php @@ -9,10 +9,11 @@ namespace Friendica\Test\src\Console; use Friendica\Console\ServerBlock; use Friendica\Moderation\DomainPatternBlocklist; +use Friendica\Test\ConsoleTestCase; use Friendica\Test\FixtureTestTrait; use Mockery; -class ServerBlockConsoleTest extends ConsoleTest +class ServerBlockConsoleTest extends ConsoleTestCase { use FixtureTestTrait; diff --git a/tests/src/Core/Cache/APCuCacheTest.php b/tests/src/Core/Cache/APCuCacheTest.php index f66930a9f6..117c211b04 100644 --- a/tests/src/Core/Cache/APCuCacheTest.php +++ b/tests/src/Core/Cache/APCuCacheTest.php @@ -8,11 +8,12 @@ namespace Friendica\Test\src\Core\Cache; use Friendica\Core\Cache\Type\APCuCache; +use Friendica\Test\MemoryCacheTestCase; /** * @group APCU */ -class APCuCacheTest extends MemoryCacheTest +class APCuCacheTest extends MemoryCacheTestCase { protected function setUp(): void { diff --git a/tests/src/Core/Cache/ArrayCacheTest.php b/tests/src/Core/Cache/ArrayCacheTest.php index ee82f6ef57..967cb07bce 100644 --- a/tests/src/Core/Cache/ArrayCacheTest.php +++ b/tests/src/Core/Cache/ArrayCacheTest.php @@ -8,8 +8,9 @@ namespace Friendica\Test\src\Core\Cache; use Friendica\Core\Cache\Type\ArrayCache; +use Friendica\Test\MemoryCacheTestCase; -class ArrayCacheTest extends MemoryCacheTest +class ArrayCacheTest extends MemoryCacheTestCase { protected function getInstance() { diff --git a/tests/src/Core/Cache/DatabaseCacheTest.php b/tests/src/Core/Cache/DatabaseCacheTest.php index 5b4c61bc88..7b9f404ae1 100644 --- a/tests/src/Core/Cache/DatabaseCacheTest.php +++ b/tests/src/Core/Cache/DatabaseCacheTest.php @@ -7,13 +7,13 @@ namespace Friendica\Test\src\Core\Cache; -use Friendica\App\BaseURL; -use Friendica\Core\Cache; +use Friendica\Core\Cache\Type\DatabaseCache; +use Friendica\Test\CacheTestCase; use Friendica\Test\DatabaseTestTrait; use Friendica\Test\Util\CreateDatabaseTrait; use Friendica\Test\Util\VFSTrait; -class DatabaseCacheTest extends CacheTest +class DatabaseCacheTest extends CacheTestCase { use DatabaseTestTrait; use CreateDatabaseTrait; @@ -30,7 +30,7 @@ class DatabaseCacheTest extends CacheTest protected function getInstance() { - $this->cache = new Cache\Type\DatabaseCache('database', $this->getDbInstance()); + $this->cache = new DatabaseCache('database', $this->getDbInstance()); return $this->cache; } diff --git a/tests/src/Core/Cache/MemcacheCacheTest.php b/tests/src/Core/Cache/MemcacheCacheTest.php index f5ac4dafb6..abd073f483 100644 --- a/tests/src/Core/Cache/MemcacheCacheTest.php +++ b/tests/src/Core/Cache/MemcacheCacheTest.php @@ -10,13 +10,14 @@ namespace Friendica\Test\src\Core\Cache; use Exception; use Friendica\Core\Cache\Type\MemcacheCache; use Friendica\Core\Config\Capability\IManageConfigValues; +use Friendica\Test\MemoryCacheTestCase; use Mockery; /** * @requires extension memcache * @group MEMCACHE */ -class MemcacheCacheTest extends MemoryCacheTest +class MemcacheCacheTest extends MemoryCacheTestCase { protected function getInstance() { diff --git a/tests/src/Core/Cache/MemcachedCacheTest.php b/tests/src/Core/Cache/MemcachedCacheTest.php index e191347cf7..f3b6107b5b 100644 --- a/tests/src/Core/Cache/MemcachedCacheTest.php +++ b/tests/src/Core/Cache/MemcachedCacheTest.php @@ -10,6 +10,7 @@ namespace Friendica\Test\src\Core\Cache; use Exception; use Friendica\Core\Cache\Type\MemcachedCache; use Friendica\Core\Config\Capability\IManageConfigValues; +use Friendica\Test\MemoryCacheTestCase; use Mockery; use Psr\Log\NullLogger; @@ -17,7 +18,7 @@ use Psr\Log\NullLogger; * @requires extension memcached * @group MEMCACHED */ -class MemcachedCacheTest extends MemoryCacheTest +class MemcachedCacheTest extends MemoryCacheTestCase { protected function getInstance() { diff --git a/tests/src/Core/Cache/RedisCacheTest.php b/tests/src/Core/Cache/RedisCacheTest.php index db1bf3f70b..6169171f40 100644 --- a/tests/src/Core/Cache/RedisCacheTest.php +++ b/tests/src/Core/Cache/RedisCacheTest.php @@ -10,13 +10,14 @@ namespace Friendica\Test\src\Core\Cache; use Exception; use Friendica\Core\Cache\Type\RedisCache; use Friendica\Core\Config\Capability\IManageConfigValues; +use Friendica\Test\MemoryCacheTestCase; use Mockery; /** * @requires extension redis * @group REDIS */ -class RedisCacheTest extends MemoryCacheTest +class RedisCacheTest extends MemoryCacheTestCase { protected function getInstance() { @@ -44,7 +45,7 @@ class RedisCacheTest extends MemoryCacheTest ->andReturn(null); try { - $this->cache = new \Friendica\Core\Cache\Type\RedisCache($host, $configMock); + $this->cache = new RedisCache($host, $configMock); } catch (Exception $e) { static::markTestSkipped('Redis is not available. Failure: ' . $e->getMessage()); } diff --git a/tests/src/Core/KeyValueStorage/DBKeyValueStorageTest.php b/tests/src/Core/KeyValueStorage/DBKeyValueStorageTest.php index 5575ea5e27..73699cd84e 100644 --- a/tests/src/Core/KeyValueStorage/DBKeyValueStorageTest.php +++ b/tests/src/Core/KeyValueStorage/DBKeyValueStorageTest.php @@ -10,9 +10,10 @@ namespace Friendica\Test\src\Core\KeyValueStorage; use Friendica\Core\KeyValueStorage\Capability\IManageKeyValuePairs; use Friendica\Core\KeyValueStorage\Type\DBKeyValueStorage; use Friendica\Database\Database; +use Friendica\Test\MockedTestCase; use Friendica\Test\Util\CreateDatabaseTrait; -class DBKeyValueStorageTest extends KeyValueStorageTest +class DBKeyValueStorageTest extends MockedTestCase { use CreateDatabaseTrait; @@ -68,4 +69,79 @@ class DBKeyValueStorageTest extends KeyValueStorageTest self::assertGreaterThanOrEqual($updateAt, $updateAtAfter); } + + public function testInstance() + { + $instance = $this->getInstance(); + + self::assertInstanceOf(IManageKeyValuePairs::class, $instance); + } + + public function dataTests(): array + { + return [ + 'string' => ['k' => 'data', 'v' => 'it'], + 'boolTrue' => ['k' => 'data', 'v' => true], + 'boolFalse' => ['k' => 'data', 'v' => false], + 'integer' => ['k' => 'data', 'v' => 235], + 'decimal' => ['k' => 'data', 'v' => 2.456], + 'array' => ['k' => 'data', 'v' => ['1', 2, '3', true, false]], + 'boolIntTrue' => ['k' => 'data', 'v' => 1], + 'boolIntFalse' => ['k' => 'data', 'v' => 0], + ]; + } + + /** + * @dataProvider dataTests + */ + public function testGetSetDelete($k, $v) + { + $instance = $this->getInstance(); + + $instance->set($k, $v); + + self::assertEquals($v, $instance->get($k)); + self::assertEquals($v, $instance[$k]); + + $instance->delete($k); + + self::assertNull($instance->get($k)); + self::assertNull($instance[$k]); + } + + /** + * @dataProvider dataTests + */ + public function testSetOverride($k, $v) + { + $instance = $this->getInstance(); + + $instance->set($k, $v); + + self::assertEquals($v, $instance->get($k)); + self::assertEquals($v, $instance[$k]); + + $instance->set($k, 'another_value'); + + self::assertEquals('another_value', $instance->get($k)); + self::assertEquals('another_value', $instance[$k]); + } + + /** + * @dataProvider dataTests + */ + public function testOffsetSetDelete($k, $v) + { + $instance = $this->getInstance(); + + $instance[$k] = $v; + + self::assertEquals($v, $instance->get($k)); + self::assertEquals($v, $instance[$k]); + + unset($instance[$k]); + + self::assertNull($instance->get($k)); + self::assertNull($instance[$k]); + } } diff --git a/tests/src/Core/KeyValueStorage/KeyValueStorageTest.php b/tests/src/Core/KeyValueStorage/KeyValueStorageTest.php deleted file mode 100644 index 123be61e12..0000000000 --- a/tests/src/Core/KeyValueStorage/KeyValueStorageTest.php +++ /dev/null @@ -1,91 +0,0 @@ -getInstance(); - - self::assertInstanceOf(IManageKeyValuePairs::class, $instance); - } - - public function dataTests(): array - { - return [ - 'string' => ['k' => 'data', 'v' => 'it'], - 'boolTrue' => ['k' => 'data', 'v' => true], - 'boolFalse' => ['k' => 'data', 'v' => false], - 'integer' => ['k' => 'data', 'v' => 235], - 'decimal' => ['k' => 'data', 'v' => 2.456], - 'array' => ['k' => 'data', 'v' => ['1', 2, '3', true, false]], - 'boolIntTrue' => ['k' => 'data', 'v' => 1], - 'boolIntFalse' => ['k' => 'data', 'v' => 0], - ]; - } - - /** - * @dataProvider dataTests - */ - public function testGetSetDelete($k, $v) - { - $instance = $this->getInstance(); - - $instance->set($k, $v); - - self::assertEquals($v, $instance->get($k)); - self::assertEquals($v, $instance[$k]); - - $instance->delete($k); - - self::assertNull($instance->get($k)); - self::assertNull($instance[$k]); - } - - /** - * @dataProvider dataTests - */ - public function testSetOverride($k, $v) - { - $instance = $this->getInstance(); - - $instance->set($k, $v); - - self::assertEquals($v, $instance->get($k)); - self::assertEquals($v, $instance[$k]); - - $instance->set($k, 'another_value'); - - self::assertEquals('another_value', $instance->get($k)); - self::assertEquals('another_value', $instance[$k]); - } - - /** - * @dataProvider dataTests - */ - public function testOffsetSetDelete($k, $v) - { - $instance = $this->getInstance(); - - $instance[$k] = $v; - - self::assertEquals($v, $instance->get($k)); - self::assertEquals($v, $instance[$k]); - - unset($instance[$k]); - - self::assertNull($instance->get($k)); - self::assertNull($instance[$k]); - } -} diff --git a/tests/src/Core/Lock/APCuCacheLockTest.php b/tests/src/Core/Lock/APCuCacheLockTest.php index f0ac1a0ec6..3ee0d09661 100644 --- a/tests/src/Core/Lock/APCuCacheLockTest.php +++ b/tests/src/Core/Lock/APCuCacheLockTest.php @@ -9,11 +9,12 @@ namespace Friendica\Test\src\Core\Lock; use Friendica\Core\Cache\Type\APCuCache; use Friendica\Core\Lock\Type\CacheLock; +use Friendica\Test\LockTestCase; /** * @group APCU */ -class APCuCacheLockTest extends LockTest +class APCuCacheLockTest extends LockTestCase { protected function setUp(): void { @@ -26,6 +27,6 @@ class APCuCacheLockTest extends LockTest protected function getInstance() { - return new \Friendica\Core\Lock\Type\CacheLock(new APCuCache('localhost')); + return new CacheLock(new APCuCache('localhost')); } } diff --git a/tests/src/Core/Lock/ArrayCacheLockTest.php b/tests/src/Core/Lock/ArrayCacheLockTest.php index 0c09b004f8..19ac7925c6 100644 --- a/tests/src/Core/Lock/ArrayCacheLockTest.php +++ b/tests/src/Core/Lock/ArrayCacheLockTest.php @@ -9,12 +9,13 @@ namespace Friendica\Test\src\Core\Lock; use Friendica\Core\Cache\Type\ArrayCache; use Friendica\Core\Lock\Type\CacheLock; +use Friendica\Test\LockTestCase; -class ArrayCacheLockTest extends LockTest +class ArrayCacheLockTest extends LockTestCase { protected function getInstance() { - return new \Friendica\Core\Lock\Type\CacheLock(new ArrayCache('localhost')); + return new CacheLock(new ArrayCache('localhost')); } /** diff --git a/tests/src/Core/Lock/DatabaseLockDriverTest.php b/tests/src/Core/Lock/DatabaseLockDriverTest.php index b4dc526b89..ebc2b0090f 100644 --- a/tests/src/Core/Lock/DatabaseLockDriverTest.php +++ b/tests/src/Core/Lock/DatabaseLockDriverTest.php @@ -8,9 +8,10 @@ namespace Friendica\Test\src\Core\Lock; use Friendica\Core\Lock\Type\DatabaseLock; +use Friendica\Test\LockTestCase; use Friendica\Test\Util\CreateDatabaseTrait; -class DatabaseLockDriverTest extends LockTest +class DatabaseLockDriverTest extends LockTestCase { use CreateDatabaseTrait; diff --git a/tests/src/Core/Lock/MemcacheCacheLockTest.php b/tests/src/Core/Lock/MemcacheCacheLockTest.php index f23870779a..2bb0595cff 100644 --- a/tests/src/Core/Lock/MemcacheCacheLockTest.php +++ b/tests/src/Core/Lock/MemcacheCacheLockTest.php @@ -11,13 +11,14 @@ use Exception; use Friendica\Core\Cache\Type\MemcacheCache; use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Core\Lock\Type\CacheLock; +use Friendica\Test\LockTestCase; use Mockery; /** * @requires extension Memcache * @group MEMCACHE */ -class MemcacheCacheLockTest extends LockTest +class MemcacheCacheLockTest extends LockTestCase { protected function getInstance() { @@ -39,7 +40,7 @@ class MemcacheCacheLockTest extends LockTest try { $cache = new MemcacheCache($host, $configMock); - $lock = new \Friendica\Core\Lock\Type\CacheLock($cache); + $lock = new CacheLock($cache); } catch (Exception $e) { static::markTestSkipped('Memcache is not available'); } diff --git a/tests/src/Core/Lock/MemcachedCacheLockTest.php b/tests/src/Core/Lock/MemcachedCacheLockTest.php index 2936bfec9a..fb38ec3312 100644 --- a/tests/src/Core/Lock/MemcachedCacheLockTest.php +++ b/tests/src/Core/Lock/MemcachedCacheLockTest.php @@ -11,6 +11,7 @@ use Exception; use Friendica\Core\Cache\Type\MemcachedCache; use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Core\Lock\Type\CacheLock; +use Friendica\Test\LockTestCase; use Mockery; use Psr\Log\NullLogger; @@ -18,7 +19,7 @@ use Psr\Log\NullLogger; * @requires extension memcached * @group MEMCACHED */ -class MemcachedCacheLockTest extends LockTest +class MemcachedCacheLockTest extends LockTestCase { protected function getInstance() { diff --git a/tests/src/Core/Lock/RedisCacheLockTest.php b/tests/src/Core/Lock/RedisCacheLockTest.php index 834d2bb8c4..d0237682c3 100644 --- a/tests/src/Core/Lock/RedisCacheLockTest.php +++ b/tests/src/Core/Lock/RedisCacheLockTest.php @@ -11,13 +11,14 @@ use Exception; use Friendica\Core\Cache\Type\RedisCache; use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Core\Lock\Type\CacheLock; +use Friendica\Test\LockTestCase; use Mockery; /** * @requires extension redis * @group REDIS */ -class RedisCacheLockTest extends LockTest +class RedisCacheLockTest extends LockTestCase { protected function getInstance() { @@ -48,7 +49,7 @@ class RedisCacheLockTest extends LockTest try { $cache = new RedisCache($host, $configMock); - $lock = new \Friendica\Core\Lock\Type\CacheLock($cache); + $lock = new CacheLock($cache); } catch (Exception $e) { static::markTestSkipped('Redis is not available. Error: ' . $e->getMessage()); } diff --git a/tests/src/Core/Lock/SemaphoreLockTest.php b/tests/src/Core/Lock/SemaphoreLockTest.php index 407e68afaf..06b4e02f46 100644 --- a/tests/src/Core/Lock/SemaphoreLockTest.php +++ b/tests/src/Core/Lock/SemaphoreLockTest.php @@ -12,12 +12,14 @@ use Friendica\App; use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Core\Config\Model\ReadOnlyFileConfig; use Friendica\Core\Config\ValueObject\Cache; +use Friendica\Core\Lock\Type\SemaphoreLock; use Friendica\Core\System; use Friendica\DI; +use Friendica\Test\LockTestCase; use Mockery; use Mockery\MockInterface; -class SemaphoreLockTest extends LockTest +class SemaphoreLockTest extends LockTestCase { protected function setUp(): void { @@ -40,7 +42,7 @@ class SemaphoreLockTest extends LockTest protected function getInstance() { - return new \Friendica\Core\Lock\Type\SemaphoreLock(); + return new SemaphoreLock(); } /** diff --git a/tests/src/Core/Logger/ProfilerLoggerTest.php b/tests/src/Core/Logger/ProfilerLoggerTest.php index 9ae1d5b3ef..f137e8c7fa 100644 --- a/tests/src/Core/Logger/ProfilerLoggerTest.php +++ b/tests/src/Core/Logger/ProfilerLoggerTest.php @@ -8,6 +8,7 @@ namespace Friendica\Test\src\Core\Logger; use Friendica\Core\Logger\Type\ProfilerLogger; +use Friendica\Test\LoggerDataTrait; use Friendica\Test\MockedTestCase; use Friendica\Util\Profiler; use Mockery\MockInterface; diff --git a/tests/src/Core/Logger/StreamLoggerTest.php b/tests/src/Core/Logger/StreamLoggerTest.php index 9fbb6b631e..5d6dc84c44 100644 --- a/tests/src/Core/Logger/StreamLoggerTest.php +++ b/tests/src/Core/Logger/StreamLoggerTest.php @@ -9,13 +9,14 @@ namespace Friendica\Test\src\Core\Logger; use Friendica\Core\Logger\Exception\LoggerArgumentException; use Friendica\Core\Logger\Exception\LogLevelException; +use Friendica\Test\LoggerTestCase; use Friendica\Test\Util\VFSTrait; use Friendica\Core\Logger\Type\StreamLogger; use org\bovigo\vfs\vfsStream; use org\bovigo\vfs\vfsStreamFile; use Psr\Log\LogLevel; -class StreamLoggerTest extends AbstractLoggerTest +class StreamLoggerTest extends LoggerTestCase { use VFSTrait; diff --git a/tests/src/Core/Logger/SyslogLoggerTest.php b/tests/src/Core/Logger/SyslogLoggerTest.php index ca3267e165..ecdaf19e27 100644 --- a/tests/src/Core/Logger/SyslogLoggerTest.php +++ b/tests/src/Core/Logger/SyslogLoggerTest.php @@ -9,9 +9,10 @@ namespace Friendica\Test\src\Core\Logger; use Friendica\Core\Logger\Exception\LogLevelException; use Friendica\Core\Logger\Type\SyslogLogger; +use Friendica\Test\LoggerTestCase; use Psr\Log\LogLevel; -class SyslogLoggerTest extends AbstractLoggerTest +class SyslogLoggerTest extends LoggerTestCase { /** * @var SyslogLoggerWrapper diff --git a/tests/src/Core/PConfig/JitPConfigTest.php b/tests/src/Core/PConfig/JitPConfigTest.php index 0e906101ec..e452ffe92c 100644 --- a/tests/src/Core/PConfig/JitPConfigTest.php +++ b/tests/src/Core/PConfig/JitPConfigTest.php @@ -8,8 +8,9 @@ namespace Friendica\Test\src\Core\PConfig; use Friendica\Core\PConfig\Type\JitPConfig; +use Friendica\Test\PConfigTestCase; -class JitPConfigTest extends PConfigTest +class JitPConfigTest extends PConfigTestCase { public function getInstance() { diff --git a/tests/src/Core/PConfig/PreloadPConfigTest.php b/tests/src/Core/PConfig/PreloadPConfigTest.php index 7d10f294ac..a7cba04045 100644 --- a/tests/src/Core/PConfig/PreloadPConfigTest.php +++ b/tests/src/Core/PConfig/PreloadPConfigTest.php @@ -8,12 +8,13 @@ namespace Friendica\Test\src\Core\PConfig; use Friendica\Core\PConfig\Type\PreloadPConfig; +use Friendica\Test\PConfigTestCase; -class PreloadPConfigTest extends PConfigTest +class PreloadPConfigTest extends PConfigTestCase { public function getInstance() { - return new \Friendica\Core\PConfig\Type\PreloadPConfig($this->configCache, $this->configModel); + return new PreloadPConfig($this->configCache, $this->configModel); } /** diff --git a/tests/src/Core/Storage/DatabaseStorageTest.php b/tests/src/Core/Storage/DatabaseStorageTest.php index 17660ceed2..ab3c514b1d 100644 --- a/tests/src/Core/Storage/DatabaseStorageTest.php +++ b/tests/src/Core/Storage/DatabaseStorageTest.php @@ -8,9 +8,10 @@ namespace Friendica\Test\src\Core\Storage; use Friendica\Core\Storage\Type\Database; +use Friendica\Test\StorageTestCase; use Friendica\Test\Util\CreateDatabaseTrait; -class DatabaseStorageTest extends StorageTest +class DatabaseStorageTest extends StorageTestCase { use CreateDatabaseTrait; diff --git a/tests/src/Core/Storage/FilesystemStorageConfigTest.php b/tests/src/Core/Storage/FilesystemStorageConfigTest.php index 8cbf3e97c8..390266f565 100644 --- a/tests/src/Core/Storage/FilesystemStorageConfigTest.php +++ b/tests/src/Core/Storage/FilesystemStorageConfigTest.php @@ -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/FilesystemStorageTest.php b/tests/src/Core/Storage/FilesystemStorageTest.php index 64bcb68a4a..2d2cfa8d3a 100644 --- a/tests/src/Core/Storage/FilesystemStorageTest.php +++ b/tests/src/Core/Storage/FilesystemStorageTest.php @@ -10,10 +10,11 @@ namespace Friendica\Test\src\Core\Storage; use Friendica\Core\Storage\Exception\StorageException; use Friendica\Core\Storage\Type\Filesystem; use Friendica\Core\Storage\Type\FilesystemConfig; +use Friendica\Test\StorageTestCase; use Friendica\Test\Util\VFSTrait; use org\bovigo\vfs\vfsStream; -class FilesystemStorageTest extends StorageTest +class FilesystemStorageTest extends StorageTestCase { use VFSTrait; diff --git a/tests/src/Factory/Api/Twitter/DirectMessageTest.php b/tests/src/Factory/Api/Twitter/DirectMessageTest.php index 1c8b12fa7e..2f73faf353 100644 --- a/tests/src/Factory/Api/Twitter/DirectMessageTest.php +++ b/tests/src/Factory/Api/Twitter/DirectMessageTest.php @@ -9,8 +9,8 @@ namespace Friendica\Test\src\Factory\Api\Twitter; use Friendica\DI; use Friendica\Factory\Api\Twitter\DirectMessage; -use Friendica\Test\FixtureTestCase; use Friendica\Test\ApiTestCase; +use Friendica\Test\FixtureTestCase; class DirectMessageTest extends FixtureTestCase { diff --git a/tests/src/Factory/Api/Twitter/StatusTest.php b/tests/src/Factory/Api/Twitter/StatusTest.php index 0fc36e9995..c18d6838ce 100644 --- a/tests/src/Factory/Api/Twitter/StatusTest.php +++ b/tests/src/Factory/Api/Twitter/StatusTest.php @@ -16,8 +16,8 @@ use Friendica\Factory\Api\Twitter\Media; use Friendica\Factory\Api\Twitter\Mention; use Friendica\Factory\Api\Twitter\Status; use Friendica\Factory\Api\Twitter\Url; -use Friendica\Test\FixtureTestCase; use Friendica\Test\ApiTestCase; +use Friendica\Test\FixtureTestCase; class StatusTest extends FixtureTestCase { diff --git a/tests/src/Factory/Api/Twitter/UserTest.php b/tests/src/Factory/Api/Twitter/UserTest.php index e671c44111..7e44a20a0f 100644 --- a/tests/src/Factory/Api/Twitter/UserTest.php +++ b/tests/src/Factory/Api/Twitter/UserTest.php @@ -10,8 +10,8 @@ namespace Friendica\Test\src\Factory\Api\Twitter; use Friendica\DI; use Friendica\Factory\Api\Twitter\User; use Friendica\Network\HTTPException\NotFoundException; -use Friendica\Test\FixtureTestCase; use Friendica\Test\ApiTestCase; +use Friendica\Test\FixtureTestCase; class UserTest extends FixtureTestCase { diff --git a/tests/src/Module/Api/Friendica/DirectMessages/SearchTest.php b/tests/src/Module/Api/Friendica/DirectMessages/SearchTest.php index 998bad5264..6b26b50ec3 100644 --- a/tests/src/Module/Api/Friendica/DirectMessages/SearchTest.php +++ b/tests/src/Module/Api/Friendica/DirectMessages/SearchTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Friendica\DirectMessages; -use Friendica\App\Router; use Friendica\DI; use Friendica\Factory\Api\Twitter\DirectMessage; use Friendica\Module\Api\Friendica\DirectMessages\Search; diff --git a/tests/src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php b/tests/src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php index e0fb146aaa..ab4cdbc7dd 100644 --- a/tests/src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php +++ b/tests/src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Mastodon\Accounts; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Mastodon\Accounts\VerifyCredentials; use Friendica\Test\ApiTestCase; diff --git a/tests/src/Module/Api/Twitter/Account/RateLimitStatusTest.php b/tests/src/Module/Api/Twitter/Account/RateLimitStatusTest.php index c0d1e89028..89cd7da640 100644 --- a/tests/src/Module/Api/Twitter/Account/RateLimitStatusTest.php +++ b/tests/src/Module/Api/Twitter/Account/RateLimitStatusTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Account; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Account\RateLimitStatus; diff --git a/tests/src/Module/Api/Twitter/Blocks/ListsTest.php b/tests/src/Module/Api/Twitter/Blocks/ListsTest.php index d41446bf2e..0b5577ccd6 100644 --- a/tests/src/Module/Api/Twitter/Blocks/ListsTest.php +++ b/tests/src/Module/Api/Twitter/Blocks/ListsTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Blocks; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Blocks\Lists; use Friendica\Test\ApiTestCase; diff --git a/tests/src/Module/Api/Twitter/DirectMessages/ConversationTest.php b/tests/src/Module/Api/Twitter/DirectMessages/ConversationTest.php index f1a4aed615..cec35927fa 100644 --- a/tests/src/Module/Api/Twitter/DirectMessages/ConversationTest.php +++ b/tests/src/Module/Api/Twitter/DirectMessages/ConversationTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\DirectMessages; -use Friendica\App\Router; use Friendica\DI; use Friendica\Factory\Api\Twitter\DirectMessage; use Friendica\Module\Api\Twitter\DirectMessages\Conversation; diff --git a/tests/src/Module/Api/Twitter/DirectMessages/InboxTest.php b/tests/src/Module/Api/Twitter/DirectMessages/InboxTest.php index 7f2ce706b2..a7e1861fc1 100644 --- a/tests/src/Module/Api/Twitter/DirectMessages/InboxTest.php +++ b/tests/src/Module/Api/Twitter/DirectMessages/InboxTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\DirectMessages; -use Friendica\App\Router; use Friendica\DI; use Friendica\Factory\Api\Twitter\DirectMessage; use Friendica\Module\Api\Twitter\DirectMessages\Inbox; diff --git a/tests/src/Module/Api/Twitter/DirectMessages/SentTest.php b/tests/src/Module/Api/Twitter/DirectMessages/SentTest.php index 07d074fbb1..4e9de634b9 100644 --- a/tests/src/Module/Api/Twitter/DirectMessages/SentTest.php +++ b/tests/src/Module/Api/Twitter/DirectMessages/SentTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\DirectMessages; -use Friendica\App\Router; use Friendica\DI; use Friendica\Factory\Api\Twitter\DirectMessage; use Friendica\Module\Api\Twitter\DirectMessages\Sent; diff --git a/tests/src/Module/Api/Twitter/FavoritesTest.php b/tests/src/Module/Api/Twitter/FavoritesTest.php index 506258dc32..1999ffe93e 100644 --- a/tests/src/Module/Api/Twitter/FavoritesTest.php +++ b/tests/src/Module/Api/Twitter/FavoritesTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Favorites; diff --git a/tests/src/Module/Api/Twitter/Followers/ListsTest.php b/tests/src/Module/Api/Twitter/Followers/ListsTest.php index 5a4f66fd45..63375393ad 100644 --- a/tests/src/Module/Api/Twitter/Followers/ListsTest.php +++ b/tests/src/Module/Api/Twitter/Followers/ListsTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Followers; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Followers\Lists; use Friendica\Test\ApiTestCase; diff --git a/tests/src/Module/Api/Twitter/Friends/ListsTest.php b/tests/src/Module/Api/Twitter/Friends/ListsTest.php index 9665dceb0e..f80fb5cd3c 100644 --- a/tests/src/Module/Api/Twitter/Friends/ListsTest.php +++ b/tests/src/Module/Api/Twitter/Friends/ListsTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Friends; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Friends\Lists; use Friendica\Test\ApiTestCase; diff --git a/tests/src/Module/Api/Twitter/Friendships/IncomingTest.php b/tests/src/Module/Api/Twitter/Friendships/IncomingTest.php index a808e00b68..305046edd1 100644 --- a/tests/src/Module/Api/Twitter/Friendships/IncomingTest.php +++ b/tests/src/Module/Api/Twitter/Friendships/IncomingTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Friendships; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Friendships\Incoming; use Friendica\Test\ApiTestCase; diff --git a/tests/src/Module/Api/Twitter/Lists/StatusesTest.php b/tests/src/Module/Api/Twitter/Lists/StatusesTest.php index 336233e057..b934b6ef15 100644 --- a/tests/src/Module/Api/Twitter/Lists/StatusesTest.php +++ b/tests/src/Module/Api/Twitter/Lists/StatusesTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Lists; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Lists\Statuses; use Friendica\Network\HTTPException\BadRequestException; diff --git a/tests/src/Module/Api/Twitter/Statuses/MentionsTest.php b/tests/src/Module/Api/Twitter/Statuses/MentionsTest.php index 512505227c..c27ce9ac09 100644 --- a/tests/src/Module/Api/Twitter/Statuses/MentionsTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/MentionsTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Statuses\Mentions; diff --git a/tests/src/Module/Api/Twitter/Statuses/NetworkPublicTimelineTest.php b/tests/src/Module/Api/Twitter/Statuses/NetworkPublicTimelineTest.php index 9a68304b21..9047f94683 100644 --- a/tests/src/Module/Api/Twitter/Statuses/NetworkPublicTimelineTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/NetworkPublicTimelineTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Statuses\NetworkPublicTimeline; diff --git a/tests/src/Module/Api/Twitter/Statuses/ShowTest.php b/tests/src/Module/Api/Twitter/Statuses/ShowTest.php index 37844ac37a..b4b83d0db0 100644 --- a/tests/src/Module/Api/Twitter/Statuses/ShowTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/ShowTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Statuses\Show; use Friendica\Network\HTTPException\BadRequestException; diff --git a/tests/src/Module/Api/Twitter/Statuses/UserTimelineTest.php b/tests/src/Module/Api/Twitter/Statuses/UserTimelineTest.php index 2e8e2f11c6..a9532572ee 100644 --- a/tests/src/Module/Api/Twitter/Statuses/UserTimelineTest.php +++ b/tests/src/Module/Api/Twitter/Statuses/UserTimelineTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Statuses; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Statuses\UserTimeline; diff --git a/tests/src/Module/Api/Twitter/Users/LookupTest.php b/tests/src/Module/Api/Twitter/Users/LookupTest.php index fd8e077dca..3ffe248b17 100644 --- a/tests/src/Module/Api/Twitter/Users/LookupTest.php +++ b/tests/src/Module/Api/Twitter/Users/LookupTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Users; -use Friendica\App\Router; use Friendica\DI; use Friendica\Module\Api\Twitter\Users\Lookup; use Friendica\Network\HTTPException\NotFoundException; diff --git a/tests/src/Module/Api/Twitter/Users/SearchTest.php b/tests/src/Module/Api/Twitter/Users/SearchTest.php index 9a0b75be3c..9ee4c06380 100644 --- a/tests/src/Module/Api/Twitter/Users/SearchTest.php +++ b/tests/src/Module/Api/Twitter/Users/SearchTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Users; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Users\Search; diff --git a/tests/src/Module/Api/Twitter/Users/ShowTest.php b/tests/src/Module/Api/Twitter/Users/ShowTest.php index 80ebb59281..267954de76 100644 --- a/tests/src/Module/Api/Twitter/Users/ShowTest.php +++ b/tests/src/Module/Api/Twitter/Users/ShowTest.php @@ -7,7 +7,6 @@ namespace Friendica\Test\src\Module\Api\Twitter\Users; -use Friendica\App\Router; use Friendica\Capabilities\ICanCreateResponses; use Friendica\DI; use Friendica\Module\Api\Twitter\Users\Show;