mirror of
https://github.com/friendica/friendica
synced 2025-04-27 18:30:12 +00:00
Fix tests & Router is now using Dependency Injection instead of DI Registry
This commit is contained in:
parent
d5a473abda
commit
f9d0e57f91
12 changed files with 54 additions and 29 deletions
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Test\src\Core\Config\Cache;
|
||||
namespace Friendica\Test\src\Core\Config;
|
||||
|
||||
use Friendica\Core\Config\Cache;
|
||||
use Friendica\Test\MockedTest;
|
||||
use ParagonIE\HiddenString\HiddenString;
|
||||
|
||||
class ConfigCacheTest extends MockedTest
|
||||
class CacheTest extends MockedTest
|
||||
{
|
||||
public function dataTests()
|
||||
{
|
|
@ -9,7 +9,7 @@ use Friendica\Test\MockedTest;
|
|||
use Mockery\MockInterface;
|
||||
use Mockery;
|
||||
|
||||
abstract class ConfigurationTest extends MockedTest
|
||||
abstract class ConfigTest extends MockedTest
|
||||
{
|
||||
/** @var ConfigModel|MockInterface */
|
||||
protected $configModel;
|
|
@ -4,7 +4,7 @@ namespace Friendica\Test\src\Core\Config;
|
|||
|
||||
use Friendica\Core\Config\JitConfig;
|
||||
|
||||
class JitConfigurationTest extends ConfigurationTest
|
||||
class JitConfigTest extends ConfigTest
|
||||
{
|
||||
public function getInstance()
|
||||
{
|
|
@ -4,7 +4,7 @@ namespace Friendica\Test\src\Core\Config;
|
|||
|
||||
use Friendica\Core\Config\PreloadConfig;
|
||||
|
||||
class PreloadConfigurationTest extends ConfigurationTest
|
||||
class PreloadConfigTest extends ConfigTest
|
||||
{
|
||||
public function getInstance()
|
||||
{
|
|
@ -24,7 +24,7 @@ class SemaphoreLockTest extends LockTest
|
|||
$configMock = \Mockery::mock(JitConfig::class);
|
||||
$configMock
|
||||
->shouldReceive('get')
|
||||
->with('system', 'temppath', NULL, false)
|
||||
->with('system', 'temppath')
|
||||
->andReturn('/tmp/');
|
||||
$dice->shouldReceive('create')->with(IConfig::class)->andReturn($configMock);
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Test\src\Core\Config\Cache;
|
||||
namespace Friendica\Test\src\Core\PConfig;
|
||||
|
||||
use Friendica\Core\PConfig\Cache;
|
||||
use Friendica\Test\MockedTest;
|
||||
|
||||
class PConfigCacheTest extends MockedTest
|
||||
class CacheTest extends MockedTest
|
||||
{
|
||||
public function dataTests()
|
||||
{
|
|
@ -1,10 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Test\src\Core\Config;
|
||||
namespace Friendica\Test\src\Core\PConfig;
|
||||
|
||||
use Friendica\Core\PConfig\JitPConfig;
|
||||
use Friendica\Test\src\Core\PConfig\PConfigTest;
|
||||
|
||||
class JitPConfigurationTest extends PConfigurationTest
|
||||
class JitPConfigTest extends PConfigTest
|
||||
{
|
||||
public function getInstance()
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Test\src\Core\Config;
|
||||
namespace Friendica\Test\src\Core\PConfig;
|
||||
|
||||
use Friendica\Core\PConfig\Cache;
|
||||
use Friendica\Core\BasePConfig;
|
||||
|
@ -9,7 +9,7 @@ use Friendica\Test\MockedTest;
|
|||
use Mockery;
|
||||
use Mockery\MockInterface;
|
||||
|
||||
abstract class PConfigurationTest extends MockedTest
|
||||
abstract class PConfigTest extends MockedTest
|
||||
{
|
||||
/** @var PConfigModel|MockInterface */
|
||||
protected $configModel;
|
|
@ -1,10 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Test\src\Core\Config;
|
||||
namespace Friendica\Test\src\Core\PConfig;
|
||||
|
||||
use Friendica\Core\PConfig\PreloadPConfig;
|
||||
use Friendica\Test\src\Core\PConfig\PConfigTest;
|
||||
|
||||
class PreloadPConfigurationTest extends PConfigurationTest
|
||||
class PreloadPConfigTest extends PConfigTest
|
||||
{
|
||||
public function getInstance()
|
||||
{
|
Loading…
Add table
Add a link
Reference in a new issue