]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Lock/LockTest.php
Fix tests
[friendica.git] / tests / src / Core / Lock / LockTest.php
index 7202058e4af4552569d6012c3fc5016c8fc822a0..59d6ee2d5d824f7b45cba698efde6db55a4b7654 100644 (file)
@@ -2,10 +2,10 @@
 
 namespace Friendica\Test\src\Core\Lock;
 
-use Friendica\Core\Logger;
 use Friendica\Test\MockedTest;
 use Friendica\Test\Util\AppMockTrait;
 use Friendica\Test\Util\VFSTrait;
+use Psr\Log\LoggerInterface;
 use Psr\Log\NullLogger;
 
 abstract class LockTest extends MockedTest
@@ -34,7 +34,10 @@ abstract class LockTest extends MockedTest
                        ->shouldReceive('getHostname')
                        ->andReturn('friendica.local');
 
-               Logger::init(new NullLogger());
+               $logger = new NullLogger();
+               $this->dice->shouldReceive('create')
+                          ->with(LoggerInterface::class)
+                          ->andReturn($logger);
 
                parent::setUp();
                $this->instance = $this->getInstance();