From 1c83f0ebb25ea553a9a4e9e4d123f8259b48e8b1 Mon Sep 17 00:00:00 2001 From: Alex Hempton-Smith Date: Mon, 11 Nov 2024 22:17:29 +0000 Subject: [PATCH] Update console messages and related tests --- src/Console/CacheCommand.php | 2 +- src/Console/ClearCommand.php | 2 +- tests/CachingTest.php | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Console/CacheCommand.php b/src/Console/CacheCommand.php index 608b185..066fba9 100644 --- a/src/Console/CacheCommand.php +++ b/src/Console/CacheCommand.php @@ -28,7 +28,7 @@ public function handle(Factory $factory, IconsManifest $manifest): int { $manifest->write($factory->all()); - $this->info('Blade icons manifest file generated successfully!'); + $this->components->info('Blade icons cached successfully.'); return 0; } diff --git a/src/Console/ClearCommand.php b/src/Console/ClearCommand.php index 6cc0707..11f2f98 100644 --- a/src/Console/ClearCommand.php +++ b/src/Console/ClearCommand.php @@ -27,7 +27,7 @@ public function handle(IconsManifest $manifest): int { $manifest->delete(); - $this->info('Blade icons manifest file cleared!'); + $this->components->info('Cached blade icons cleared successfully.'); return 0; } diff --git a/tests/CachingTest.php b/tests/CachingTest.php index 3e93158..54f20d4 100644 --- a/tests/CachingTest.php +++ b/tests/CachingTest.php @@ -6,11 +6,12 @@ class CachingTest extends TestCase { + /** @test */ public function it_can_create_a_cache_file() { $this->artisan('icons:cache') - ->expectsOutput('Blade icons manifest file generated successfully!') + ->expectsOutput("\n INFO Blade icons cached successfully. \n") ->assertExitCode(0); } @@ -18,7 +19,7 @@ public function it_can_create_a_cache_file() public function it_can_clear_the_cache() { $this->artisan('icons:clear') - ->expectsOutput('Blade icons manifest file cleared!') + ->expectsOutput("\n INFO Cached blade icons cleared successfully. \n") ->assertExitCode(0); } }