Skip to content

Commit 222002f

Browse files
test(install): simulates component installation with the dry-run option
1 parent 8d10dde commit 222002f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/Feature/Commands/InstallCommandTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,14 @@
7272
$this->view("components.ui.separator.index");
7373

7474
});
75+
76+
77+
it("simulates component installation with the dry-run option", function () {
78+
$this->artisan("sheaf:install alerts --dry-run")
79+
->expectsOutputToContain("Preview: Installing Alerts (Dry Run)")
80+
->expectsOutputToContain("Will create")
81+
->assertExitCode(0)
82+
->run();
83+
84+
expect(view()->exists("components.ui.alerts.index"))->toBeFalse();
85+
});

0 commit comments

Comments
 (0)