We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41fd753 commit 84d2b11Copy full SHA for 84d2b11
1 file changed
tests/system/Database/Live/TransactionTest.php
@@ -14,6 +14,7 @@
14
use CodeIgniter\Database\Exceptions\DatabaseException;
15
use CodeIgniter\Test\CIUnitTestCase;
16
use CodeIgniter\Test\DatabaseTestTrait;
17
+use Config\Database;
18
use Tests\Support\Database\Seeds\CITestSeeder;
19
20
/**
@@ -28,6 +29,14 @@ final class TransactionTest extends CIUnitTestCase
28
29
protected $refresh = true;
30
protected $seed = CITestSeeder::class;
31
32
+ protected function setUp(): void
33
+ {
34
+ // Reset connection instance.
35
+ $this->db = Database::connect($this->DBGroup, false);
36
+
37
+ parent::setUp();
38
+ }
39
40
41
* Sets $DBDebug to false.
42
*
0 commit comments