Kraken\_Unit\Log\LoggerTest::testApiCritical_CallsMethodOnModel PHP Method

testApiCritical_CallsMethodOnModel() public method

    public function testApiCritical_CallsMethodOnModel()
    {
        $logger = $this->createLoggerMock();
        $message = 'message';
        $context = ['a' => 'A'];
        $result = true;
        $this->expect('critical', [$message, $context])->willReturn($result);
        $this->assertSame($result, $logger->critical($message, $context));
    }