Skip to content

Commit e976a59

Browse files
committed
test: reset CLI state for scaffold tests
Signed-off-by: memleakd <121398829+memleakd@users.noreply.github.com>
1 parent 7c03e7e commit e976a59

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/system/Commands/Generators/ScaffoldGeneratorTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
namespace CodeIgniter\Commands\Generators;
1515

16+
use CodeIgniter\CLI\CLI;
1617
use CodeIgniter\Test\CIUnitTestCase;
1718
use CodeIgniter\Test\StreamFilterTrait;
1819
use Config\Autoload;
@@ -30,6 +31,7 @@ final class ScaffoldGeneratorTest extends CIUnitTestCase
3031
protected function setUp(): void
3132
{
3233
$this->resetServices();
34+
CLI::init();
3335
service('autoloader')->initialize(new Autoload(), new Modules());
3436

3537
parent::setUp();

0 commit comments

Comments
 (0)