Skip to content

Commit 450b511

Browse files
committed
test: group commands tests similar to system/Commands/
1 parent d277ac1 commit 450b511

29 files changed

+36
-30
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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
use PHPUnit\Framework\Attributes\Group;
2323

2424
/**
25+
* @todo To figure out how to transfer this test to `tests/system/Commands/Database/` without breaking DatabaseLive group.
26+
*
2527
* @internal
2628
*/
2729
#[Group('DatabaseLive')]

tests/system/Commands/DatabaseCommandsTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
use PHPUnit\Framework\Attributes\Group;
1919

2020
/**
21+
* @todo To figure out how to transfer this test to `tests/system/Commands/Database/` without breaking DatabaseLive group.
22+
*
2123
* @internal
2224
*/
2325
#[Group('DatabaseLive')]

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;

tests/system/Commands/EntityGeneratorTest.php renamed to tests/system/Commands/Generators/EntityGeneratorTest.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)