mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:50:12 +00:00
Refactoring Core class structures ...
This commit is contained in:
parent
57b4c008cb
commit
b216317477
130 changed files with 1625 additions and 1397 deletions
|
@ -24,7 +24,7 @@ namespace Friendica\Test\src\Console;
|
|||
use Dice\Dice;
|
||||
use Friendica\App;
|
||||
use Friendica\Console\AutomaticInstallation;
|
||||
use Friendica\Core\Config\Cache\Cache;
|
||||
use Friendica\Core\Config\ValueObject\Cache;
|
||||
use Friendica\Core\Installer;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
|
@ -53,7 +53,7 @@ class AutomaticInstallationConsoleTest extends ConsoleTest
|
|||
private $assertFileDb;
|
||||
|
||||
/**
|
||||
* @var \Friendica\Core\Config\Cache\Cache The configuration cache to check after each test
|
||||
* @var \Friendica\Core\Config\ValueObject\Cache The configuration cache to check after each test
|
||||
*/
|
||||
private $configCache;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace Friendica\Test\src\Console;
|
|||
use Friendica\App;
|
||||
use Friendica\App\Mode;
|
||||
use Friendica\Console\Config;
|
||||
use Friendica\Core\Config\IConfig;
|
||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||
use Mockery;
|
||||
use Mockery\LegacyMockInterface;
|
||||
use Mockery\MockInterface;
|
||||
|
@ -35,7 +35,7 @@ class ConfigConsoleTest extends ConsoleTest
|
|||
* @var App\Mode|MockInterface $appMode
|
||||
*/
|
||||
private $appMode;
|
||||
/** @var IConfig|LegacyMockInterface|MockInterface */
|
||||
/** @var IManageConfigValues|LegacyMockInterface|MockInterface */
|
||||
private $configMock;
|
||||
|
||||
protected function setUp() : void
|
||||
|
@ -52,7 +52,7 @@ class ConfigConsoleTest extends ConsoleTest
|
|||
$this->appMode->shouldReceive('has')
|
||||
->andReturn(true);
|
||||
|
||||
$this->configMock = Mockery::mock(IConfig::class);
|
||||
$this->configMock = Mockery::mock(IManageConfigValues::class);
|
||||
}
|
||||
|
||||
public function testSetGetKeyValue()
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace Friendica\Test\src\Console;
|
|||
use Friendica\App;
|
||||
use Friendica\App\Mode;
|
||||
use Friendica\Console\Lock;
|
||||
use Friendica\Core\Lock\ILock;
|
||||
use Friendica\Core\Lock\Capability\ICanLock;
|
||||
use Mockery;
|
||||
use Mockery\MockInterface;
|
||||
|
||||
|
@ -36,7 +36,7 @@ class LockConsoleTest extends ConsoleTest
|
|||
private $appMode;
|
||||
|
||||
/**
|
||||
* @var ILock|MockInterface
|
||||
* @var ICanLock|MockInterface
|
||||
*/
|
||||
private $lockMock;
|
||||
|
||||
|
@ -54,7 +54,7 @@ class LockConsoleTest extends ConsoleTest
|
|||
$this->appMode->shouldReceive('has')
|
||||
->andReturn(true);
|
||||
|
||||
$this->lockMock = Mockery::mock(ILock::class);
|
||||
$this->lockMock = Mockery::mock(ICanLock::class);
|
||||
}
|
||||
|
||||
public function testList()
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
namespace Friendica\Test\src\Console;
|
||||
|
||||
use Friendica\Console\ServerBlock;
|
||||
use Friendica\Core\Config\IConfig;
|
||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||
use Mockery;
|
||||
|
||||
class ServerBlockConsoleTest extends ConsoleTest
|
||||
|
@ -38,7 +38,7 @@ class ServerBlockConsoleTest extends ConsoleTest
|
|||
]
|
||||
];
|
||||
/**
|
||||
* @var IConfig|Mockery\LegacyMockInterface|Mockery\MockInterface
|
||||
* @var IManageConfigValues|Mockery\LegacyMockInterface|Mockery\MockInterface
|
||||
*/
|
||||
private $configMock;
|
||||
|
||||
|
@ -46,7 +46,7 @@ class ServerBlockConsoleTest extends ConsoleTest
|
|||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->configMock = Mockery::mock(IConfig::class);
|
||||
$this->configMock = Mockery::mock(IManageConfigValues::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue