From ff60e6daa3d7f8b40106d0cbb4cb746f68f75128 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Fri, 3 Dec 2021 14:56:27 +0100 Subject: [PATCH] Fix doctrine connection factory test SELECT 1 returns integer in PHP8.1 and string in PHP8.0 and below. [MAILPOET-3980] --- tests/integration/Doctrine/ConnectionFactoryTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/Doctrine/ConnectionFactoryTest.php b/tests/integration/Doctrine/ConnectionFactoryTest.php index deba822a67..d6ad0ee57a 100644 --- a/tests/integration/Doctrine/ConnectionFactoryTest.php +++ b/tests/integration/Doctrine/ConnectionFactoryTest.php @@ -93,7 +93,7 @@ class ConnectionFactoryTest extends \MailPoetTest { $connectionFactory = new ConnectionFactory(); $connection = $connectionFactory->createConnection(); expect($connection->getWrappedConnection())->isInstanceOf(PDO::class); - expect($connection->executeQuery('SELECT 1')->fetchOne())->same('1'); + expect($connection->executeQuery('SELECT "abc"')->fetchOne())->same('abc'); } public function testItSetsDriverOptions() {