diff --git a/tests/Feature/CreateNewSiteTest.php b/tests/Feature/CreateNewSiteTest.php index 2769420..bb0f266 100644 --- a/tests/Feature/CreateNewSiteTest.php +++ b/tests/Feature/CreateNewSiteTest.php @@ -10,7 +10,10 @@ it('can not create new site if directory existed', function () { mkdir('tests/tmp'); + + $this->artisan('new tests/tmp') + ->expectsConfirmation('The directory tests/tmp already exists. Do you want to continue?', 'no') ->assertExitCode(1); });