@@ 39-46 (lines=8) @@ | ||
36 | } |
|
37 | ||
38 | /** @test */ |
|
39 | public function it_generates_module_folders() |
|
40 | { |
|
41 | $this->artisan('module:make', ['name' => ['Blog']]); |
|
42 | ||
43 | foreach (config('modules.paths.generator') as $directory) { |
|
44 | $this->assertTrue(is_dir($this->modulePath . '/' . $directory)); |
|
45 | } |
|
46 | } |
|
47 | ||
48 | /** @test */ |
|
49 | public function it_generates_module_files() |
|
@@ 49-56 (lines=8) @@ | ||
46 | } |
|
47 | ||
48 | /** @test */ |
|
49 | public function it_generates_module_files() |
|
50 | { |
|
51 | $this->artisan('module:make', ['name' => ['Blog']]); |
|
52 | ||
53 | foreach (config('modules.stubs.files') as $file) { |
|
54 | $this->assertTrue(is_file($this->modulePath . '/' . $file)); |
|
55 | } |
|
56 | } |
|
57 | } |
|
58 |