Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Xammie committed Feb 11, 2022
1 parent f5fcd9c commit 06a9c5d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/CommandsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
use Xammie\MakeCommands\Commands\ServiceMakeCommand;

it('can make action', function () {
artisan(ActionMakeCommand::class, ['name' => 'TestAction'])->assertSuccessful();
artisan(ActionMakeCommand::class, ['name' => 'TestAction'])->assertExitCode(0);
});

it('can make contract', function () {
artisan(ContractMakeCommand::class, ['name' => 'TestContract'])->assertSuccessful();
artisan(ContractMakeCommand::class, ['name' => 'TestContract'])->assertExitCode(0);
});

it('can make dto', function () {
artisan(DtoMakeCommand::class, ['name' => 'TestDto'])->assertSuccessful();
artisan(DtoMakeCommand::class, ['name' => 'TestDto'])->assertExitCode(0);
});

it('can make enum', function () {
artisan(EnumMakeCommand::class, ['name' => 'TestEnum'])->assertSuccessful();
artisan(EnumMakeCommand::class, ['name' => 'TestEnum'])->assertExitCode(0);
});

it('can make service', function () {
artisan(ServiceMakeCommand::class, ['name' => 'TestService'])->assertSuccessful();
artisan(ServiceMakeCommand::class, ['name' => 'TestService'])->assertExitCode(0);
});

0 comments on commit 06a9c5d

Please sign in to comment.