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:
committed by
Veljko V
parent
b3795eab1a
commit
ff60e6daa3
@@ -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() {
|
||||
|
Reference in New Issue
Block a user