mirror of
https://github.com/friendica/friendica
synced 2025-04-27 01:10:14 +00:00
Creating interfaces for Config/PConfig & fix tests
This commit is contained in:
parent
4835f1185f
commit
c1dbb25656
54 changed files with 349 additions and 285 deletions
|
@ -3,7 +3,7 @@
|
|||
namespace Friendica\Test\src\Util;
|
||||
|
||||
use Friendica\Core\Config\Cache\ConfigCache;
|
||||
use Friendica\Core\Config\Configuration;
|
||||
use Friendica\Core\Config\IConfiguration;
|
||||
use Friendica\Test\MockedTest;
|
||||
use Friendica\Util\Profiler;
|
||||
use Mockery\MockInterface;
|
||||
|
@ -235,7 +235,7 @@ class ProfilerTest extends MockedTest
|
|||
|
||||
$profiler->saveTimestamp(time(), 'network', 'test1');
|
||||
|
||||
$config = \Mockery::mock(Configuration::class);
|
||||
$config = \Mockery::mock(IConfiguration::class);
|
||||
$config->shouldReceive('get')
|
||||
->with('system', 'profiler')
|
||||
->andReturn(false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue