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