We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8c91f3 commit b84d90aCopy full SHA for b84d90a
tests/system/CLI/ConsoleTest.php
@@ -21,6 +21,8 @@
21
use CodeIgniter\Test\Mock\MockCodeIgniter;
22
23
/**
24
+ * @runTestsInSeparateProcess
25
+ *
26
* @internal
27
*/
28
final class ConsoleTest extends CIUnitTestCase
@@ -81,6 +83,11 @@ public function testNoHeader()
81
83
82
84
public function testRun()
85
{
86
+ // The Console class is only used by spark.
87
+ // But `CodeIgniter::runController()` cannot determine
88
+ // that it is a Spark request without the constant SPARKED.
89
+ define('SPARKED', true);
90
+
91
$request = new CLIRequest(config('App'));
92
Services::injectMock('request', $request);
93
0 commit comments