We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff69174 commit 0508547Copy full SHA for 0508547
tests/Feature/Console/RepositoryTest.php
@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace PPSpaces\Tests\Feature\Console;
4
5
+use PPSpaces\Tests\App\User;
6
+use PPSpaces\Tests\TestCase;
7
8
+/**
9
+ * Class DatabaseTest
10
+ */
11
+class RepositoryTest extends TestCase
12
+{
13
+ public function test_it_can_generate_repository_command()
14
+ {
15
+ $this->artisan('make:repository', [
16
+ 'name' => 'LogsRepository'
17
+ ])
18
+ ->expectsOutput('Repository created successfully.')
19
+ ->assertExitCode(0);
20
+ }
21
22
+ public function test_it_can_generate_model_repository_command()
23
24
25
+ 'name' => 'UserRepository',
26
+ '--model' => 'PPSpaces\Tests\App\User'
27
28
29
30
31
+}
0 commit comments