Skip to content

Commit 1c83f0e

Browse files
committed
Update console messages and related tests
1 parent e39d9af commit 1c83f0e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Console/CacheCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function handle(Factory $factory, IconsManifest $manifest): int
2828
{
2929
$manifest->write($factory->all());
3030

31-
$this->info('Blade icons manifest file generated successfully!');
31+
$this->components->info('Blade icons cached successfully.');
3232

3333
return 0;
3434
}

src/Console/ClearCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function handle(IconsManifest $manifest): int
2727
{
2828
$manifest->delete();
2929

30-
$this->info('Blade icons manifest file cleared!');
30+
$this->components->info('Cached blade icons cleared successfully.');
3131

3232
return 0;
3333
}

tests/CachingTest.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@
66

77
class CachingTest extends TestCase
88
{
9+
910
/** @test */
1011
public function it_can_create_a_cache_file()
1112
{
1213
$this->artisan('icons:cache')
13-
->expectsOutput('Blade icons manifest file generated successfully!')
14+
->expectsOutput("\n INFO Blade icons cached successfully. \n")
1415
->assertExitCode(0);
1516
}
1617

1718
/** @test */
1819
public function it_can_clear_the_cache()
1920
{
2021
$this->artisan('icons:clear')
21-
->expectsOutput('Blade icons manifest file cleared!')
22+
->expectsOutput("\n INFO Cached blade icons cleared successfully. \n")
2223
->assertExitCode(0);
2324
}
2425
}

0 commit comments

Comments
 (0)