Skip to content

Commit 5ec7f15

Browse files
committed
fixing tests
1 parent 2bfd6c0 commit 5ec7f15

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

tests/Pest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,12 @@
1111
function db($uuid = 'ID')
1212
{
1313
$useUUID = 'UUID' == $uuid;
14-
static $dbUUID = null;
15-
static $dbID = null;
14+
static $dbUUID = Scrawler\Arca\Facade\Database::connect(getConnectionParams('UUID'));;
15+
static $dbID = Scrawler\Arca\Facade\Database::connect(getConnectionParams('ID'));
1616

1717
if ($useUUID) {
18-
if ($dbUUID === null) {
19-
$dbUUID = Scrawler\Arca\Facade\Database::connect(getConnectionParams('UUID'));
20-
}
2118
return $dbUUID;
2219
} else {
23-
if ($dbID === null) {
24-
$dbID = Scrawler\Arca\Facade\Database::connect(getConnectionParams('ID'));
25-
}
2620
return $dbID;
2721
}
2822
}

0 commit comments

Comments
 (0)