mirror of
https://github.com/friendica/friendica
synced 2024-05-14 23:19:38 +02:00
4eaeea7889
* Config Console Tests - `MultiUseConsole` is now a testable console - `ConsoleTest` is a abstract TestClass for console tests - `ConfigConsoleTest` tests the config console commands * disable preserve global state because of smarty * fixed requires & basepath für Console Test
24 lines
404 B
PHP
24 lines
404 B
PHP
<?php
|
|
|
|
namespace Friendica\Test\src\Core\Console;
|
|
|
|
use Friendica\Core\Console;
|
|
|
|
/**
|
|
* Adds two methods to the Friendica\Core\Console so we can reuse it during tests
|
|
*
|
|
* @package Friendica\Test\src\Core\Console
|
|
*/
|
|
class MultiUseConsole extends Console
|
|
{
|
|
public function reset() {
|
|
$this->args = [];
|
|
$this->options = [];
|
|
}
|
|
|
|
public function parseTestArgv($argv)
|
|
{
|
|
$this->parseArgv($argv);
|
|
}
|
|
}
|