Rename ConsoleTest to ConsoleTestCase

This commit is contained in:
Art4 2024-12-14 08:16:37 +00:00
parent 9f8023b91f
commit 54ee36a6aa
5 changed files with 14 additions and 10 deletions

View file

@ -5,13 +5,13 @@
// //
// SPDX-License-Identifier: AGPL-3.0-or-later // SPDX-License-Identifier: AGPL-3.0-or-later
namespace Friendica\Test\src\Console; namespace Friendica\Test;
use Asika\SimpleConsole\Console; use Asika\SimpleConsole\Console;
use Friendica\Test\MockedTestCase; use Friendica\Test\MockedTestCase;
use Friendica\Test\Util\Intercept; use Friendica\Test\Util\Intercept;
abstract class ConsoleTest extends MockedTestCase abstract class ConsoleTestCase extends MockedTestCase
{ {
/** /**
* @var array The default argv for a Console Instance * @var array The default argv for a Console Instance

View file

@ -16,6 +16,7 @@ use Friendica\Core\L10n;
use Friendica\Core\Logger; use Friendica\Core\Logger;
use Friendica\Database\Database; use Friendica\Database\Database;
use Friendica\DI; use Friendica\DI;
use Friendica\Test\ConsoleTestCase;
use Friendica\Test\Util\RendererMockTrait; use Friendica\Test\Util\RendererMockTrait;
use Friendica\Test\Util\VFSTrait; use Friendica\Test\Util\VFSTrait;
use Mockery; use Mockery;
@ -24,7 +25,7 @@ use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamFile; use org\bovigo\vfs\vfsStreamFile;
use Psr\Log\NullLogger; use Psr\Log\NullLogger;
class AutomaticInstallationConsoleTest extends ConsoleTest class AutomaticInstallationConsoleTest extends ConsoleTestCase
{ {
use VFSTrait; use VFSTrait;
use RendererMockTrait; use RendererMockTrait;

View file

@ -11,11 +11,12 @@ use Friendica\App;
use Friendica\App\Mode; use Friendica\App\Mode;
use Friendica\Console\Config; use Friendica\Console\Config;
use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Test\ConsoleTestCase;
use Mockery; use Mockery;
use Mockery\LegacyMockInterface; use Mockery\LegacyMockInterface;
use Mockery\MockInterface; use Mockery\MockInterface;
class ConfigConsoleTest extends ConsoleTest class ConfigConsoleTest extends ConsoleTestCase
{ {
/** /**
* @var App\Mode|MockInterface $appMode * @var App\Mode|MockInterface $appMode

View file

@ -11,10 +11,11 @@ use Friendica\App;
use Friendica\App\Mode; use Friendica\App\Mode;
use Friendica\Console\Lock; use Friendica\Console\Lock;
use Friendica\Core\Lock\Capability\ICanLock; use Friendica\Core\Lock\Capability\ICanLock;
use Friendica\Test\ConsoleTestCase;
use Mockery; use Mockery;
use Mockery\MockInterface; use Mockery\MockInterface;
class LockConsoleTest extends ConsoleTest class LockConsoleTest extends ConsoleTestCase
{ {
/** /**
* @var App\Mode|MockInterface $appMode * @var App\Mode|MockInterface $appMode

View file

@ -9,10 +9,11 @@ namespace Friendica\Test\src\Console;
use Friendica\Console\ServerBlock; use Friendica\Console\ServerBlock;
use Friendica\Moderation\DomainPatternBlocklist; use Friendica\Moderation\DomainPatternBlocklist;
use Friendica\Test\ConsoleTestCase;
use Friendica\Test\FixtureTestTrait; use Friendica\Test\FixtureTestTrait;
use Mockery; use Mockery;
class ServerBlockConsoleTest extends ConsoleTest class ServerBlockConsoleTest extends ConsoleTestCase
{ {
use FixtureTestTrait; use FixtureTestTrait;