Skip to content

Commit 4e339bc

Browse files
committed
Change default build task message
1 parent fe270f3 commit 4e339bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/framework/src/Framework/Features/BuildTasks/BuildTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ abstract class BuildTask
2020
use TracksExecutionTime;
2121

2222
/** @var string The message that will be displayed when the task is run. */
23-
protected static string $message = 'Running generic build task';
23+
protected static string $message = 'Running build task';
2424

2525
protected int $exitCode = Command::SUCCESS;
2626

packages/framework/tests/Unit/BuildTaskUnitTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function testItPrintsStartMessage()
6060
{
6161
$task = tap(new BufferedTestBuildTask(), fn ($task) => $task->run());
6262

63-
$this->assertStringContainsString('Running generic build task', $task->buffer[0]);
63+
$this->assertStringContainsString('Running build task', $task->buffer[0]);
6464
}
6565

6666
public function testItPrintsFinishMessage()
@@ -95,7 +95,7 @@ public function testRunMethodReturnsExitCode()
9595

9696
public function testCanGetMessage()
9797
{
98-
$this->assertSame('Running generic build task', (new BufferedTestBuildTask())->getMessage());
98+
$this->assertSame('Running build task', (new BufferedTestBuildTask())->getMessage());
9999
}
100100

101101
public function testCanGetCustomMessage()
@@ -109,7 +109,7 @@ public function testCanPrintStartMessage()
109109
{
110110
$task = tap(new BufferedTestBuildTask(), fn ($task) => $task->printStartMessage());
111111

112-
$this->assertSame('<comment>Running generic build task...</comment>', trim($task->buffer[0]));
112+
$this->assertSame('<comment>Running build task...</comment>', trim($task->buffer[0]));
113113
}
114114

115115
public function testCanPrintCustomStartMessage()

0 commit comments

Comments
 (0)