Skip to content

Commit 186ece7

Browse files
committed
test: fix test code for $db-dateFormat merge
1 parent 3b23657 commit 186ece7

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

tests/system/Database/BaseConnectionTest.php

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,27 @@
2626
final class BaseConnectionTest extends CIUnitTestCase
2727
{
2828
private array $options = [
29-
'DSN' => '',
30-
'hostname' => 'localhost',
31-
'username' => 'first',
32-
'password' => 'last',
33-
'database' => 'dbname',
34-
'DBDriver' => 'MockDriver',
35-
'DBPrefix' => 'test_',
36-
'pConnect' => true,
37-
'DBDebug' => true,
38-
'charset' => 'utf8mb4',
39-
'DBCollat' => 'utf8mb4_general_ci',
40-
'swapPre' => '',
41-
'encrypt' => false,
42-
'compress' => false,
43-
'strictOn' => true,
44-
'failover' => [],
29+
'DSN' => '',
30+
'hostname' => 'localhost',
31+
'username' => 'first',
32+
'password' => 'last',
33+
'database' => 'dbname',
34+
'DBDriver' => 'MockDriver',
35+
'DBPrefix' => 'test_',
36+
'pConnect' => true,
37+
'DBDebug' => true,
38+
'charset' => 'utf8mb4',
39+
'DBCollat' => 'utf8mb4_general_ci',
40+
'swapPre' => '',
41+
'encrypt' => false,
42+
'compress' => false,
43+
'strictOn' => true,
44+
'failover' => [],
45+
'dateFormat' => [
46+
'date' => 'Y-m-d',
47+
'datetime' => 'Y-m-d H:i:s',
48+
'time' => 'H:i:s',
49+
],
4550
];
4651
private array $failoverOptions = [
4752
'DSN' => '',

0 commit comments

Comments
 (0)