Skip to content

Commit ba8a4a7

Browse files
committed
test: group commands tests similar to system/Commands/
1 parent 35c4872 commit ba8a4a7

30 files changed

+35
-35
lines changed

.github/labeler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
'documentation':
1515
- changed-files:
1616
- any-glob-to-all-files:
17-
- 'user_guide_src/source/*'
17+
- 'user_guide_src/source/**'
1818

1919
# Add the `testing` label to PRs that change files in the `tests/` directory ONLY.
2020
'testing':
2121
- changed-files:
2222
- any-glob-to-all-files:
23-
- 'tests/*'
23+
- 'tests/**'

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\Test\CIUnitTestCase;

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: 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/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;

0 commit comments

Comments
 (0)