]> git.mxchange.org Git - friendica.git/commitdiff
Remove expected third parameter value to saveTimestamp() in Util\ProfilerLogger test
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 27 Jul 2020 08:20:46 +0000 (04:20 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 27 Jul 2020 08:20:46 +0000 (04:20 -0400)
tests/src/Util/Logger/ProfilerLoggerTest.php

index 68db1448a171db0a74b3577f41c7f078108689b0..0023dff548b225ef18e2aa493e2458163f35d647 100644 (file)
@@ -58,7 +58,7 @@ class ProfilerLoggerTest extends MockedTest
                $logger = new ProfilerLogger($this->logger, $this->profiler);
 
                $this->logger->shouldReceive($function)->with($message, $context)->once();
-               $this->profiler->shouldReceive('saveTimestamp')->with(\Mockery::any(), 'file', \Mockery::any())->once();
+               $this->profiler->shouldReceive('saveTimestamp')->with(\Mockery::any(), 'file')->once();
                $logger->$function($message, $context);
        }
 
@@ -70,7 +70,7 @@ 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('saveTimestamp')->with(\Mockery::any(), 'file', \Mockery::any())->once();
+               $this->profiler->shouldReceive('saveTimestamp')->with(\Mockery::any(), 'file')->once();
 
                $logger->log(LogLevel::WARNING, 'test', ['a' => 'context']);
        }