Skip to content

Commit 22cbfd8

Browse files
committed
test: group commands tests similar to system/Commands/
1 parent c67b0a7 commit 22cbfd8

29 files changed

+35
-33
lines changed

tests/system/Commands/ClearCacheTest.php renamed to tests/system/Commands/Cache/ClearCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace CodeIgniter\Commands;
14+
namespace CodeIgniter\Commands\Cache;
1515

1616
use CodeIgniter\Cache\CacheFactory;
1717
use CodeIgniter\Cache\Handlers\FileHandler;

tests/system/Commands/InfoCacheTest.php renamed to tests/system/Commands/Cache/InfoCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace CodeIgniter\Commands;
14+
namespace CodeIgniter\Commands\Cache;
1515

1616
use CodeIgniter\Cache\CacheFactory;
1717
use CodeIgniter\Test\CIUnitTestCase;

tests/system/Commands/CreateDatabaseTest.php renamed to tests/system/Commands/Database/CreateDatabaseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace CodeIgniter\Commands;
14+
namespace CodeIgniter\Commands\Database;
1515

1616
use CodeIgniter\Database\BaseConnection;
1717
use CodeIgniter\Database\OCI8\Connection as OCI8Connection;

tests/system/Commands/DatabaseCommandsTest.php renamed to tests/system/Commands/Database/DatabaseCommandsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace CodeIgniter\Commands;
14+
namespace CodeIgniter\Commands\Database;
1515

1616
use CodeIgniter\Test\CIUnitTestCase;
1717
use CodeIgniter\Test\StreamFilterTrait;

tests/system/Commands/MigrationIntegrationTest.php renamed to tests/system/Commands/Database/MigrationIntegrationTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace CodeIgniter\Commands;
14+
namespace CodeIgniter\Commands\Database;
1515

1616
use CodeIgniter\Test\CIUnitTestCase;
1717
use CodeIgniter\Test\StreamFilterTrait;
1818
use PHPUnit\Framework\Attributes\Group;
19+
use PHPUnit\Framework\Attributes\RunInSeparateProcess;
1920

2021
/**
2122
* @internal
@@ -56,6 +57,7 @@ protected function tearDown(): void
5657
}
5758
}
5859

60+
#[RunInSeparateProcess]
5961
public function testMigrationWithRollbackHasSameNameFormat(): void
6062
{
6163
command('migrate -n App');

tests/system/Commands/GenerateKeyTest.php renamed to tests/system/Commands/Encryption/GenerateKeyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace CodeIgniter\Commands;
14+
namespace CodeIgniter\Commands\Encryption;
1515

1616
use CodeIgniter\Config\Services;
1717
use CodeIgniter\Superglobals;

tests/system/Commands/CellGeneratorTest.php renamed to tests/system/Commands/Generators/CellGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace CodeIgniter\Commands;
14+
namespace CodeIgniter\Commands\Generators;
1515

1616
use CodeIgniter\Test\CIUnitTestCase;
1717
use CodeIgniter\Test\StreamFilterTrait;

tests/system/Commands/CommandGeneratorTest.php renamed to tests/system/Commands/Generators/CommandGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace CodeIgniter\Commands;
14+
namespace CodeIgniter\Commands\Generators;
1515

1616
use CodeIgniter\Test\CIUnitTestCase;
1717
use CodeIgniter\Test\StreamFilterTrait;

tests/system/Commands/ConfigGeneratorTest.php renamed to tests/system/Commands/Generators/ConfigGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace CodeIgniter\Commands;
14+
namespace CodeIgniter\Commands\Generators;
1515

1616
use CodeIgniter\Test\CIUnitTestCase;
1717
use CodeIgniter\Test\StreamFilterTrait;

tests/system/Commands/ControllerGeneratorTest.php renamed to tests/system/Commands/Generators/ControllerGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace CodeIgniter\Commands;
14+
namespace CodeIgniter\Commands\Generators;
1515

1616
use CodeIgniter\Test\CIUnitTestCase;
1717
use CodeIgniter\Test\StreamFilterTrait;

0 commit comments

Comments
 (0)