Skip to content

Commit b03b1db

Browse files
committed
Fix test
1 parent 13096ec commit b03b1db

File tree

1 file changed

+2
-9
lines changed
  • dev/tests/integration/testsuite/Magento/Framework/DB/Adapter/Pdo

1 file changed

+2
-9
lines changed

dev/tests/integration/testsuite/Magento/Framework/DB/Adapter/Pdo/MysqlTest.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function tearDown(): void
3737
/**
3838
* Check PDO stringify fetches options
3939
*/
40-
public function testStringifyFetches(): void
40+
public function testStringifyFetchesTrue(): void
4141
{
4242
$tableName = $this->resourceConnection->getTableName('table_with_int_column');
4343
$columnId = 'integer_column';
@@ -54,14 +54,7 @@ public function testStringifyFetches(): void
5454
->columns([$columnId])
5555
->limit(1);
5656
$result = $adapter->fetchOne($select);
57-
58-
$isStringify = $adapter->getConfig()['driver_options'][\PDO::ATTR_STRINGIFY_FETCHES] ?? null;
59-
if ($isStringify || $isStringify === null) {
60-
$this->assertIsString($result);
61-
} else { // option is set to False
62-
$this->assertIsInt($result);
63-
}
64-
57+
$this->assertIsString($result);
6558
$adapter->dropTable($tableName);
6659
}
6760

0 commit comments

Comments
 (0)