mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Remove expected third parameter value to saveTimestamp() in Util\ProfilerLogger test
This commit is contained in:
parent
ce04c13ea8
commit
121bb85719
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ class ProfilerLoggerTest extends MockedTest
|
||||||
$logger = new ProfilerLogger($this->logger, $this->profiler);
|
$logger = new ProfilerLogger($this->logger, $this->profiler);
|
||||||
|
|
||||||
$this->logger->shouldReceive($function)->with($message, $context)->once();
|
$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);
|
$logger->$function($message, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ class ProfilerLoggerTest extends MockedTest
|
||||||
$logger = new ProfilerLogger($this->logger, $this->profiler);
|
$logger = new ProfilerLogger($this->logger, $this->profiler);
|
||||||
|
|
||||||
$this->logger->shouldReceive('log')->with(LogLevel::WARNING, 'test', ['a' => 'context'])->once();
|
$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']);
|
$logger->log(LogLevel::WARNING, 'test', ['a' => 'context']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue