We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16f2272 commit 1d34ae7Copy full SHA for 1d34ae7
system/CLI/Console.php
@@ -22,7 +22,10 @@
22
*/
23
class Console
24
{
25
- private const DEFAULT_COMMAND = 'list';
+ /**
26
+ * @internal
27
+ */
28
+ public const DEFAULT_COMMAND = 'list';
29
30
private string $command = '';
31
tests/system/CLI/ConsoleTest.php
@@ -165,6 +165,10 @@ public function testConsoleReturnsTheLastExecutedCommand(): void
165
$console = new Console();
166
$this->assertSame('', $console->getCommand());
167
168
+ $this->initializeConsole();
169
+ $console->run();
170
+ $this->assertSame(Console::DEFAULT_COMMAND, $console->getCommand());
171
+
172
$this->initializeConsole('help');
173
$console->run();
174
$this->assertSame('help', $console->getCommand());
0 commit comments