Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/bake/Command/command.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class {{ name }}Command extends Command
*
* @var string
*/
protected string $name = '{{ command_name }}';
protected string $name = 'cake {{ command_name }}';

/**
* Get the command description.
Expand Down
1 change: 1 addition & 0 deletions tests/TestCase/Command/CommandCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public function testMain(): void
$this->assertExitCode(CommandInterface::CODE_SUCCESS);
$this->assertFilesExist($this->generatedFiles);
$this->assertFileContains('class ExampleCommand extends Command', $this->generatedFiles[0]);
$this->assertFileContains("protected string \$name = 'cake example'", $this->generatedFiles[0]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/comparisons/Command/testBakePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ExampleCommand extends Command
*
* @var string
*/
protected string $name = 'test_bake example';
protected string $name = 'cake test_bake example';

/**
* Get the command description.
Expand Down
Loading