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 1414use CodeIgniter \Database \SQLite3 \Connection ;
1515use CodeIgniter \Database \SQLite3 \Forge ;
1616use CodeIgniter \Test \CIUnitTestCase ;
17- use CodeIgniter \Test \DatabaseTestTrait ;
1817use Config \Database ;
1918use stdClass ;
2019
2524 */
2625final class GetIndexDataTest extends CIUnitTestCase
2726{
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-
3727 /**
3828 * @var Connection
3929 */
@@ -45,6 +35,11 @@ protected function setUp(): void
4535 {
4636 parent ::setUp ();
4737
38+ $ this ->db = Database::connect ($ this ->DBGroup );
39+ if ($ this ->db ->DBDriver !== 'SQLite3 ' ) {
40+ $ this ->markTestSkipped ('This test is only for SQLite3. ' );
41+ }
42+
4843 $ config = [
4944 'DBDriver ' => 'SQLite3 ' ,
5045 'database ' => 'database.db ' ,
You can’t perform that action at this time.
0 commit comments