Skip to content

Commit 3b60067

Browse files
committed
test: add markTestSkipped() and remove DatabaseTestTrait
1 parent 0499e81 commit 3b60067

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

tests/system/Database/Live/SQLite3/GetIndexDataTest.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use CodeIgniter\Database\SQLite3\Connection;
1515
use CodeIgniter\Database\SQLite3\Forge;
1616
use CodeIgniter\Test\CIUnitTestCase;
17-
use CodeIgniter\Test\DatabaseTestTrait;
1817
use Config\Database;
1918
use stdClass;
2019

@@ -25,15 +24,6 @@
2524
*/
2625
final 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',

0 commit comments

Comments
 (0)