diff --git a/tests/Common/CommonPdoCommandTest.php b/tests/Common/CommonPdoCommandTest.php index dd63b1870..87cb072c7 100644 --- a/tests/Common/CommonPdoCommandTest.php +++ b/tests/Common/CommonPdoCommandTest.php @@ -7,6 +7,7 @@ use PDO; use PHPUnit\Framework\TestCase; use Psr\Log\LoggerInterface; +use Psr\Log\LogLevel; use Yiisoft\Db\Command\Param; use Yiisoft\Db\Command\ParamInterface; use Yiisoft\Db\Driver\Pdo\AbstractPdoCommand; @@ -234,8 +235,9 @@ protected function createQueryLogger(string $sql, array $params = []): LoggerInt $logger = $this->createMock(LoggerInterface::class); $logger ->expects($this->once()) - ->method('info') + ->method('log') ->with( + LogLevel::INFO, $sql, $params );