Fix doctrine connection factory test

SELECT 1 returns integer in PHP8.1 and string in PHP8.0 and below.
[MAILPOET-3980]
This commit is contained in:
Rostislav Wolny
2021-12-03 14:56:27 +01:00
committed by Veljko V
parent b3795eab1a
commit ff60e6daa3

View File

@@ -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() {