X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FCore%2FLock%2FSemaphoreLockTest.php;h=ab4f98c63e75b793e5de9039d8e764a31345439a;hb=cb80108957f16011b5b7b1b8961da8cbd78d60c9;hp=6b4daf88741a8b3af8a087bde2bbfb8e5d6d9124;hpb=c742c62f0aae6a033823dd34ae97426dc90e7580;p=friendica.git diff --git a/tests/src/Core/Lock/SemaphoreLockTest.php b/tests/src/Core/Lock/SemaphoreLockTest.php index 6b4daf8874..ab4f98c63e 100644 --- a/tests/src/Core/Lock/SemaphoreLockTest.php +++ b/tests/src/Core/Lock/SemaphoreLockTest.php @@ -4,8 +4,8 @@ namespace Friendica\Test\src\Core\Lock; use Dice\Dice; use Friendica\App; -use Friendica\Core\Config\IConfiguration; -use Friendica\Core\Config\JitConfiguration; +use Friendica\Core\Config\IConfig; +use Friendica\Core\Config\JitConfig; use Friendica\Core\Lock\SemaphoreLock; use Friendica\DI; use Mockery\MockInterface; @@ -21,12 +21,12 @@ class SemaphoreLockTest extends LockTest $app->shouldReceive('getHostname')->andReturn('friendica.local'); $dice->shouldReceive('create')->with(App::class)->andReturn($app); - $configMock = \Mockery::mock(JitConfiguration::class); + $configMock = \Mockery::mock(JitConfig::class); $configMock ->shouldReceive('get') ->with('system', 'temppath', NULL, false) ->andReturn('/tmp/'); - $dice->shouldReceive('create')->with(IConfiguration::class)->andReturn($configMock); + $dice->shouldReceive('create')->with(IConfig::class)->andReturn($configMock); // @todo Because "get_temppath()" is using static methods, we have to initialize the BaseObject DI::init($dice);