From 222002f111daa732767676bc7efa68b85a26259f Mon Sep 17 00:00:00 2001 From: YoussefACHCHIRAJ Date: Wed, 8 Oct 2025 19:40:47 +0100 Subject: [PATCH] test(install): simulates component installation with the dry-run option --- tests/Feature/Commands/InstallCommandTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/Feature/Commands/InstallCommandTest.php b/tests/Feature/Commands/InstallCommandTest.php index 17968bd..7c71de1 100644 --- a/tests/Feature/Commands/InstallCommandTest.php +++ b/tests/Feature/Commands/InstallCommandTest.php @@ -72,3 +72,14 @@ $this->view("components.ui.separator.index"); }); + + +it("simulates component installation with the dry-run option", function () { + $this->artisan("sheaf:install alerts --dry-run") + ->expectsOutputToContain("Preview: Installing Alerts (Dry Run)") + ->expectsOutputToContain("Will create") + ->assertExitCode(0) + ->run(); + + expect(view()->exists("components.ui.alerts.index"))->toBeFalse(); +}); \ No newline at end of file