File tree Expand file tree Collapse file tree 4 files changed +6
-75
lines changed
Expand file tree Collapse file tree 4 files changed +6
-75
lines changed Original file line number Diff line number Diff line change @@ -29,29 +29,9 @@ final class DatabaseTestCaseMigrationOnce1Test extends CIUnitTestCase
2929{
3030 use DatabaseTestTrait;
3131
32- /**
33- * Should run db migration only once?
34- *
35- * @var bool
36- */
3732 protected $ migrateOnce = true ;
38-
39- /**
40- * Should the db be refreshed before test?
41- *
42- * @var bool
43- */
44- protected $ refresh = true ;
45-
46- /**
47- * The namespace(s) to help us find the migration classes.
48- * Empty is equivalent to running `spark migrate -all`.
49- * Note that running "all" runs migrations in date order,
50- * but specifying namespaces runs them in namespace order (then date)
51- *
52- * @var list<string>|string|null
53- */
54- protected $ namespace = [
33+ protected $ refresh = true ;
34+ protected $ namespace = [
5535 'Tests\Support\MigrationTestMigrations ' ,
5636 ];
5737
Original file line number Diff line number Diff line change @@ -29,29 +29,9 @@ final class DatabaseTestCaseMigrationOnce2Test extends CIUnitTestCase
2929{
3030 use DatabaseTestTrait;
3131
32- /**
33- * Should run db migration only once?
34- *
35- * @var bool
36- */
3732 protected $ migrateOnce = true ;
38-
39- /**
40- * Should the db be refreshed before test?
41- *
42- * @var bool
43- */
44- protected $ refresh = true ;
45-
46- /**
47- * The namespace(s) to help us find the migration classes.
48- * Empty is equivalent to running `spark migrate -all`.
49- * Note that running "all" runs migrations in date order,
50- * but specifying namespaces runs them in namespace order (then date)
51- *
52- * @var list<string>|string|null
53- */
54- protected $ namespace = [
33+ protected $ refresh = true ;
34+ protected $ namespace = [
5535 'Tests\Support\MigrationTestMigrations ' ,
5636 ];
5737
Original file line number Diff line number Diff line change @@ -28,33 +28,11 @@ final class DatabaseTestCaseTest extends CIUnitTestCase
2828{
2929 use DatabaseTestTrait;
3030
31- /**
32- * Should the db be refreshed before
33- * each test?
34- *
35- * @var bool
36- */
3731 protected $ refresh = true ;
38-
39- /**
40- * The seed file(s) used for all tests within this test case.
41- * Should be fully-namespaced or relative to $basePath
42- *
43- * @var ''|class-string<Seeder>|list<class-string<Seeder>>
44- */
45- protected $ seed = [
32+ protected $ seed = [
4633 CITestSeeder::class,
4734 AnotherSeeder::class,
4835 ];
49-
50- /**
51- * The namespace(s) to help us find the migration classes.
52- * Empty is equivalent to running `spark migrate -all`.
53- * Note that running "all" runs migrations in date order,
54- * but specifying namespaces runs them in namespace order (then date)
55- *
56- * @var list<string>|string|null
57- */
5836 protected $ namespace = [
5937 'Tests\Support ' ,
6038 'Tests\Support\MigrationTestMigrations ' ,
Original file line number Diff line number Diff line change 1313
1414namespace CodeIgniter \Database \Live ;
1515
16- use CodeIgniter \Database \Seeder ;
1716use CodeIgniter \Test \CIUnitTestCase ;
1817use CodeIgniter \Test \DatabaseTestTrait ;
1918use Config \Database ;
@@ -28,13 +27,7 @@ final class MetadataTest extends CIUnitTestCase
2827{
2928 use DatabaseTestTrait;
3029
31- /**
32- * The seed file used for all tests within this test case.
33- *
34- * @var ''|class-string<Seeder>|list<class-string<Seeder>>
35- */
36- protected $ seed = CITestSeeder::class;
37-
30+ protected $ seed = CITestSeeder::class;
3831 private array $ expectedTables = [];
3932
4033 protected function setUp (): void
You can’t perform that action at this time.
0 commit comments