mirror of
https://github.com/friendica/friendica
synced 2025-04-28 10:24:23 +02:00
Use DICE for Console
- Use Friendica\Core\Console as Controller for DI-library - Refactor every console command to use DICE (when possible) - Adjusting tests
This commit is contained in:
parent
b8a336cc0d
commit
a60eb9e33d
20 changed files with 400 additions and 166 deletions
|
@ -4,15 +4,10 @@ namespace Friendica\Test\src\Console;
|
|||
|
||||
use Asika\SimpleConsole\Console;
|
||||
use Friendica\Test\MockedTest;
|
||||
use Friendica\Test\Util\AppMockTrait;
|
||||
use Friendica\Test\Util\Intercept;
|
||||
use Friendica\Test\Util\VFSTrait;
|
||||
|
||||
abstract class ConsoleTest extends MockedTest
|
||||
{
|
||||
use VFSTrait;
|
||||
use AppMockTrait;
|
||||
|
||||
/**
|
||||
* @var array The default argv for a Console Instance
|
||||
*/
|
||||
|
@ -23,8 +18,6 @@ abstract class ConsoleTest extends MockedTest
|
|||
parent::setUp();
|
||||
|
||||
Intercept::setUp();
|
||||
|
||||
$this->setUpVfsDir();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue