mirror of
https://github.com/friendica/friendica
synced 2025-04-23 23:50:12 +00:00
refactoring & test fixing
This commit is contained in:
parent
6d73dcbe3d
commit
88fd871844
4 changed files with 118 additions and 95 deletions
|
@ -3,10 +3,12 @@
|
|||
namespace Friendica\Test\src\Core\Console;
|
||||
|
||||
use Asika\SimpleConsole\Console;
|
||||
use Friendica\Core\Config\ConfigCache;
|
||||
use Friendica\Test\MockedTest;
|
||||
use Friendica\Test\Util\AppMockTrait;
|
||||
use Friendica\Test\Util\Intercept;
|
||||
use Friendica\Test\Util\VFSTrait;
|
||||
use Friendica\Util\Profiler;
|
||||
|
||||
abstract class ConsoleTest extends MockedTest
|
||||
{
|
||||
|
@ -29,8 +31,10 @@ abstract class ConsoleTest extends MockedTest
|
|||
Intercept::setUp();
|
||||
|
||||
$this->setUpVfsDir();
|
||||
$configMock = \Mockery::mock('Friendica\Core\Config\ConfigCache');
|
||||
$configMock = \Mockery::mock(ConfigCache::class);
|
||||
$this->mockApp($this->root, $configMock);
|
||||
$profileMock = \Mockery::mock(Profiler::class);
|
||||
$this->app->shouldReceive('getProfiler')->andReturn($profileMock);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue