33namespace VueGenerators \tests ;
44
55use Artisan ;
6- use Illuminate \Filesystem \Filesystem ;
76
87class CommandTest extends TestCase
98{
@@ -17,8 +16,8 @@ public function it_saves_component_file_with_specified_name()
1716 $ this ->assertFileNotExists ($ file );
1817
1918 Artisan::call ('vueg:component ' , [
20- 'name ' => 'NewComponent ' ,
21- '--empty ' => true
19+ 'name ' => 'NewComponent ' ,
20+ '--empty ' => true ,
2221 ]);
2322
2423 $ this ->assertFileExists ($ file );
@@ -34,8 +33,8 @@ public function it_generates_an_empty_component_file()
3433 $ this ->assertFileNotExists ($ file );
3534
3635 Artisan::call ('vueg:component ' , [
37- 'name ' => 'NewComponent ' ,
38- '--empty ' => true
36+ 'name ' => 'NewComponent ' ,
37+ '--empty ' => true ,
3938 ]);
4039
4140 $ this ->assertFileEquals (__DIR__ .'/../src/Stubs/EmptyComponent.vue ' , $ file );
@@ -51,7 +50,7 @@ public function it_generates_a_filled_component_file()
5150 $ this ->assertFileNotExists ($ file );
5251
5352 Artisan::call ('vueg:component ' , [
54- 'name ' => 'NewComponent '
53+ 'name ' => 'NewComponent ' ,
5554 ]);
5655
5756 $ this ->assertFileEquals (__DIR__ .'/../src/Stubs/Component.vue ' , $ file );
@@ -67,8 +66,8 @@ public function it_saves_component_file_to_specified_path()
6766 $ this ->assertFileNotExists ($ file );
6867
6968 Artisan::call ('vueg:component ' , [
70- 'name ' => 'NewComponent ' ,
71- '--path ' => 'custom.path '
69+ 'name ' => 'NewComponent ' ,
70+ '--path ' => 'custom.path ' ,
7271 ]);
7372
7473 $ this ->assertFileExists ($ file );
@@ -84,8 +83,8 @@ public function it_saves_mixin_file_with_specified_name()
8483 $ this ->assertFileNotExists ($ file );
8584
8685 Artisan::call ('vueg:mixin ' , [
87- 'name ' => 'NewMixin ' ,
88- '--empty ' => true
86+ 'name ' => 'NewMixin ' ,
87+ '--empty ' => true ,
8988 ]);
9089
9190 $ this ->assertFileExists ($ file );
@@ -101,8 +100,8 @@ public function it_generates_empty_mixin_file()
101100 $ this ->assertFileNotExists ($ file );
102101
103102 Artisan::call ('vueg:mixin ' , [
104- 'name ' => 'NewMixin ' ,
105- '--empty ' => true
103+ 'name ' => 'NewMixin ' ,
104+ '--empty ' => true ,
106105 ]);
107106
108107 $ this ->assertFileEquals (__DIR__ .'/../src/Stubs/EmptyMixin.js ' , $ file );
@@ -134,8 +133,8 @@ public function it_saves_mixin_file_to_specified_path()
134133 $ this ->assertFileNotExists ($ file );
135134
136135 Artisan::call ('vueg:mixin ' , [
137- 'name ' => 'NewMixin ' ,
138- '--path ' => 'custom.path '
136+ 'name ' => 'NewMixin ' ,
137+ '--path ' => 'custom.path ' ,
139138 ]);
140139
141140 $ this ->assertFileExists ($ file );
0 commit comments