diff --git a/src/Console/MakeExceptionCommand.php b/src/Console/MakeExceptionCommand.php new file mode 100644 index 0000000..520d321 --- /dev/null +++ b/src/Console/MakeExceptionCommand.php @@ -0,0 +1,28 @@ +artisan(MakeExceptionCommand::class, ['name' => 'MyException']) + ->expectsOutput('Nutgram Exception created successfully.') + ->assertSuccessful(); + + expect(config('nutgram.namespace').'/Exceptions/MyException.php') + ->toBeFile() + ->getFileContent() + ->toContain('class MyException'); +});