]> git.mxchange.org Git - friendica.git/commitdiff
Again
authorMichael <heluecht@pirati.ca>
Tue, 27 Jul 2021 06:26:11 +0000 (06:26 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 27 Jul 2021 06:26:11 +0000 (06:26 +0000)
tests/src/Util/Logger/ProfilerLoggerTest.php

index 0a63b43814070c623eb0e2ba4d4ea9f5fd537a52..2dbb604f96aac35a469629b7ba7426b25ca7f1d2 100644 (file)
@@ -59,9 +59,9 @@ class ProfilerLoggerTest extends MockedTest
                $logger = new ProfilerLogger($this->logger, $this->profiler);
 
                $this->logger->shouldReceive($function)->with($message, $context)->once();
-               $this->profiler->shouldReceive('startRecording');
+               $this->profiler->shouldReceive('startRecording')->with(\Mockery::any(), 'file')->once();
                $this->profiler->shouldReceive('stopRecording');
-               $this->profiler->shouldReceive('saveTimestamp')->with(\Mockery::any(), 'file')->once();
+               $this->profiler->shouldReceive('saveTimestamp');
                $logger->$function($message, $context);
        }
 
@@ -74,9 +74,9 @@ class ProfilerLoggerTest extends MockedTest
                $logger = new ProfilerLogger($this->logger, $this->profiler);
 
                $this->logger->shouldReceive('log')->with(LogLevel::WARNING, 'test', ['a' => 'context'])->once();
-               $this->profiler->shouldReceive('startRecording');
+               $this->profiler->shouldReceive('startRecording')->with(\Mockery::any(), 'file')->once();
                $this->profiler->shouldReceive('stopRecording');
-               $this->profiler->shouldReceive('saveTimestamp')->with(\Mockery::any(), 'file')->once();
+               $this->profiler->shouldReceive('saveTimestamp');
 
                $logger->log(LogLevel::WARNING, 'test', ['a' => 'context']);
        }