chore: fix deprecations after bumping doctrine
This commit is contained in:
@@ -11,7 +11,7 @@ use App\Enum\StatisticsActorRole;
|
||||
use App\Enum\StatisticsEventName;
|
||||
use App\Service\Statistics\StatisticsRecorder;
|
||||
use Doctrine\DBAL\Connection;
|
||||
use Doctrine\DBAL\Exception as DbalException;
|
||||
use Doctrine\DBAL\Exception\DatabaseRequired;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Log\LoggerInterface;
|
||||
@@ -103,7 +103,7 @@ class StatisticsRecorderTest extends TestCase
|
||||
{
|
||||
$this->connection
|
||||
->method('insert')
|
||||
->willThrowException(new DbalException('no such table'))
|
||||
->willThrowException(new DatabaseRequired('no such table'))
|
||||
;
|
||||
|
||||
$this->logger->expects($this->once())->method('error');
|
||||
|
||||
Reference in New Issue
Block a user