3
3
namespace VueGenerators \tests ;
4
4
5
5
use Artisan ;
6
- use Illuminate \Filesystem \Filesystem ;
7
6
8
7
class CommandTest extends TestCase
9
8
{
@@ -17,8 +16,8 @@ public function it_saves_component_file_with_specified_name()
17
16
$ this ->assertFileNotExists ($ file );
18
17
19
18
Artisan::call ('vueg:component ' , [
20
- 'name ' => 'NewComponent ' ,
21
- '--empty ' => true
19
+ 'name ' => 'NewComponent ' ,
20
+ '--empty ' => true ,
22
21
]);
23
22
24
23
$ this ->assertFileExists ($ file );
@@ -34,8 +33,8 @@ public function it_generates_an_empty_component_file()
34
33
$ this ->assertFileNotExists ($ file );
35
34
36
35
Artisan::call ('vueg:component ' , [
37
- 'name ' => 'NewComponent ' ,
38
- '--empty ' => true
36
+ 'name ' => 'NewComponent ' ,
37
+ '--empty ' => true ,
39
38
]);
40
39
41
40
$ this ->assertFileEquals (__DIR__ .'/../src/Stubs/EmptyComponent.vue ' , $ file );
@@ -51,7 +50,7 @@ public function it_generates_a_filled_component_file()
51
50
$ this ->assertFileNotExists ($ file );
52
51
53
52
Artisan::call ('vueg:component ' , [
54
- 'name ' => 'NewComponent '
53
+ 'name ' => 'NewComponent ' ,
55
54
]);
56
55
57
56
$ this ->assertFileEquals (__DIR__ .'/../src/Stubs/Component.vue ' , $ file );
@@ -67,8 +66,8 @@ public function it_saves_component_file_to_specified_path()
67
66
$ this ->assertFileNotExists ($ file );
68
67
69
68
Artisan::call ('vueg:component ' , [
70
- 'name ' => 'NewComponent ' ,
71
- '--path ' => 'custom.path '
69
+ 'name ' => 'NewComponent ' ,
70
+ '--path ' => 'custom.path ' ,
72
71
]);
73
72
74
73
$ this ->assertFileExists ($ file );
@@ -84,8 +83,8 @@ public function it_saves_mixin_file_with_specified_name()
84
83
$ this ->assertFileNotExists ($ file );
85
84
86
85
Artisan::call ('vueg:mixin ' , [
87
- 'name ' => 'NewMixin ' ,
88
- '--empty ' => true
86
+ 'name ' => 'NewMixin ' ,
87
+ '--empty ' => true ,
89
88
]);
90
89
91
90
$ this ->assertFileExists ($ file );
@@ -101,8 +100,8 @@ public function it_generates_empty_mixin_file()
101
100
$ this ->assertFileNotExists ($ file );
102
101
103
102
Artisan::call ('vueg:mixin ' , [
104
- 'name ' => 'NewMixin ' ,
105
- '--empty ' => true
103
+ 'name ' => 'NewMixin ' ,
104
+ '--empty ' => true ,
106
105
]);
107
106
108
107
$ this ->assertFileEquals (__DIR__ .'/../src/Stubs/EmptyMixin.js ' , $ file );
@@ -134,8 +133,8 @@ public function it_saves_mixin_file_to_specified_path()
134
133
$ this ->assertFileNotExists ($ file );
135
134
136
135
Artisan::call ('vueg:mixin ' , [
137
- 'name ' => 'NewMixin ' ,
138
- '--path ' => 'custom.path '
136
+ 'name ' => 'NewMixin ' ,
137
+ '--path ' => 'custom.path ' ,
139
138
]);
140
139
141
140
$ this ->assertFileExists ($ file );
0 commit comments