File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
tests/system/Database/Live/SQLite3 Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 14
14
use CodeIgniter \Database \SQLite3 \Connection ;
15
15
use CodeIgniter \Database \SQLite3 \Forge ;
16
16
use CodeIgniter \Test \CIUnitTestCase ;
17
- use CodeIgniter \Test \DatabaseTestTrait ;
18
17
use Config \Database ;
19
18
use stdClass ;
20
19
25
24
*/
26
25
final class GetIndexDataTest extends CIUnitTestCase
27
26
{
28
- use DatabaseTestTrait;
29
-
30
- /**
31
- * In setUp() db connection is changed. So migration doesn't work
32
- *
33
- * @var bool
34
- */
35
- protected $ migrate = false ;
36
-
37
27
/**
38
28
* @var Connection
39
29
*/
@@ -45,6 +35,11 @@ protected function setUp(): void
45
35
{
46
36
parent ::setUp ();
47
37
38
+ $ this ->db = Database::connect ($ this ->DBGroup );
39
+ if ($ this ->db ->DBDriver !== 'SQLite3 ' ) {
40
+ $ this ->markTestSkipped ('This test is only for SQLite3. ' );
41
+ }
42
+
48
43
$ config = [
49
44
'DBDriver ' => 'SQLite3 ' ,
50
45
'database ' => 'database.db ' ,
You can’t perform that action at this time.
0 commit comments