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 78c6c66 commit 9348899Copy full SHA for 9348899
tests/system/CLI/ConsoleTest.php
@@ -21,6 +21,9 @@
21
use CodeIgniter\Test\Mock\MockCodeIgniter;
22
23
/**
24
+ * @runTestsInSeparateProcesses
25
+ * @preserveGlobalState disabled
26
+ *
27
* @internal
28
*/
29
final class ConsoleTest extends CIUnitTestCase
@@ -81,6 +84,11 @@ public function testNoHeader()
81
84
82
85
public function testRun()
83
86
{
87
+ // The Console class is only used by spark.
88
+ // But `CodeIgniter::runController()` cannot determine
89
+ // that it is a Spark request without the constant SPARKED.
90
+ define('SPARKED', true);
91
+
92
$request = new CLIRequest(config('App'));
93
Services::injectMock('request', $request);
94
0 commit comments