Skip to content

Commit e31166e

Browse files
authored
Merge pull request #4041 from kenjis/fix-DatabaseTestCaseTest
Fix database test case test
2 parents ea0a5d2 + 3570fca commit e31166e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/system/Database/DatabaseTestCaseTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
use CodeIgniter\Test\CIDatabaseTestCase;
44
use Config\Services;
55

6+
/**
7+
* @group DatabaseLive
8+
*/
69
class DatabaseTestCaseTest extends CIDatabaseTestCase
710
{
8-
protected $loaded = false;
11+
protected static $loaded = false;
912

1013
/**
1114
* Should the db be refreshed before
@@ -41,10 +44,10 @@ class DatabaseTestCaseTest extends CIDatabaseTestCase
4144

4245
public function setUp(): void
4346
{
44-
if (! $this->loaded)
47+
if (! self::$loaded)
4548
{
4649
Services::autoloader()->addNamespace('Tests\Support\MigrationTestMigrations', SUPPORTPATH . 'MigrationTestMigrations');
47-
$this->loaded = true;
50+
self::$loaded = true;
4851
}
4952

5053
parent::setUp();

0 commit comments

Comments
 (0)