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
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

View file

@ -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 <database> The name of the mysql/mariadb database (env MYSQL_DATABASE)
-U|--dbuser <username> The username of the mysql/mariadb database login (env MYSQL_USER or MYSQL_USERNAME)
-P|--dbpass <password> The password of the mysql/mariadb database login (env MYSQL_PASSWORD)
-U|--url <url> The full base URL of Friendica - f.e. 'https://friendica.local/sub' (env FRIENDICA_URL)
-U|--url <url> The full base URL of Friendica - f.e. 'https://friendica.local/sub' (env FRIENDICA_URL)
-B|--phppath <php_path> The path of the PHP binary (env FRIENDICA_PHP_PATH)
-b|--basepath <base_path> The basepath of Friendica (env FRIENDICA_BASE_PATH)
-t|--tz <timezone> The timezone of Friendica (env FRIENDICA_TZ)
-L|--lang <language> 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

View file

@ -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

View file

@ -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

View file

@ -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;