Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Hotfix: merge options in the BaseTest class
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Sep 8, 2021
1 parent 8fab9b2 commit 9db3b86
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions tests/Database/BaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,13 @@ public function getDriver(array $options = []): Driver
if (!isset($this->driver)) {
$class = $config['driver'];

$this->driver = new $class(
[
'connection' => $config['conn'],
'username' => $config['user'] ?? '',
'password' => $config['pass'] ?? '',
'options' => [],
'queryCache' => true
]
);
$this->driver = new $class(\array_merge($options, [
'connection' => $config['conn'],
'username' => $config['user'] ?? '',
'password' => $config['pass'] ?? '',
'options' => [],
'queryCache' => true
]));
}

static::$logger = static::$logger ?? new TestLogger();
Expand Down

0 comments on commit 9db3b86

Please sign in to comment.