Skip to content

Commit 9efac84

Browse files
committed
test: Skip running tests if DB is not MySQLi
1 parent 16fe250 commit 9efac84

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/system/Database/Live/MySQLi/FoundRowsTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ final class FoundRowsTest extends CIUnitTestCase
2828
use DatabaseTestTrait;
2929

3030
/**
31-
* @var array<string,mixed>
31+
* Database config for tests
32+
*
33+
* @var array<string, mixed>
3234
*/
3335
private $tests;
3436

@@ -37,15 +39,15 @@ final class FoundRowsTest extends CIUnitTestCase
3739

3840
protected function setUp(): void
3941
{
40-
parent::setUp();
41-
4242
$config = config('Database');
4343

4444
$this->tests = $config->tests;
4545

4646
if ($this->tests['DBDriver'] !== 'MySQLi') {
4747
$this->markTestSkipped('Only MySQLi can complete this test.');
4848
}
49+
50+
parent::setUp();
4951
}
5052

5153
public function testEnableFoundRows(): void

0 commit comments

Comments
 (0)