@@ -57,7 +57,7 @@ public function getCommandTests()
57
57
// command name
58
58
'app:foo ' ,
59
59
))
60
- ->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeCommand ' )
60
+ ->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeCommand ' ),
61
61
);
62
62
63
63
yield 'controller ' => array (MakerTestDetails::createTest (
@@ -66,7 +66,7 @@ public function getCommandTests()
66
66
// controller class name
67
67
'FooBar ' ,
68
68
))
69
- ->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeController ' )
69
+ ->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeController ' ),
70
70
);
71
71
72
72
yield 'entity ' => array (MakerTestDetails::createTest (
@@ -88,15 +88,15 @@ public function getCommandTests()
88
88
'mysql://db_user:[email protected] :3306/db_name ' ,
89
89
'sqlite:///%kernel.project_dir%/var/app.db '
90
90
)
91
- ->addPostMakeCommand ('./bin/console doctrine:schema:create --env=test ' )
91
+ ->addPostMakeCommand ('./bin/console doctrine:schema:create --env=test ' ),
92
92
);
93
93
94
94
yield 'form ' => array (MakerTestDetails::createTest (
95
95
$ this ->getMakerInstance (MakeForm::class),
96
96
array (
97
97
// form name
98
98
'FooBar ' ,
99
- ))
99
+ )),
100
100
);
101
101
102
102
yield 'functional ' => array (MakerTestDetails::createTest (
@@ -105,7 +105,7 @@ public function getCommandTests()
105
105
// functional test class name
106
106
'FooBar ' ,
107
107
))
108
- ->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeFunctional ' )
108
+ ->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeFunctional ' ),
109
109
);
110
110
111
111
yield 'subscriber ' => array (MakerTestDetails::createTest (
@@ -115,7 +115,7 @@ public function getCommandTests()
115
115
'FooBar ' ,
116
116
// event name
117
117
'kernel.request ' ,
118
- ))
118
+ )),
119
119
);
120
120
121
121
yield 'subscriber_unknown_event_class ' => array (MakerTestDetails::createTest (
@@ -125,7 +125,7 @@ public function getCommandTests()
125
125
'FooBar ' ,
126
126
// event name
127
127
'foo.unknown_event ' ,
128
- ))
128
+ )),
129
129
);
130
130
131
131
yield 'serializer_encoder ' => array (MakerTestDetails::createTest (
@@ -135,47 +135,47 @@ public function getCommandTests()
135
135
'FooBarEncoder ' ,
136
136
// encoder format
137
137
'foobar ' ,
138
- ))
138
+ )),
139
139
);
140
140
141
141
yield 'twig_extension ' => array (MakerTestDetails::createTest (
142
142
$ this ->getMakerInstance (MakeTwigExtension::class),
143
143
array (
144
144
// extension class name
145
145
'FooBar ' ,
146
- ))
146
+ )),
147
147
);
148
148
149
149
yield 'unit_test ' => array (MakerTestDetails::createTest (
150
150
$ this ->getMakerInstance (MakeUnitTest::class),
151
151
array (
152
152
// class name
153
153
'FooBar ' ,
154
- ))
154
+ )),
155
155
);
156
156
157
157
yield 'validator ' => array (MakerTestDetails::createTest (
158
158
$ this ->getMakerInstance (MakeValidator::class),
159
159
array (
160
160
// validator name
161
161
'FooBar ' ,
162
- ))
162
+ )),
163
163
);
164
164
165
165
yield 'voter ' => array (MakerTestDetails::createTest (
166
166
$ this ->getMakerInstance (MakeVoter::class),
167
167
array (
168
168
// voter class name
169
169
'FooBar ' ,
170
- ))
170
+ )),
171
171
);
172
172
173
173
yield 'auth_empty ' => array (MakerTestDetails::createTest (
174
174
$ this ->getMakerInstance (MakeAuthenticator::class),
175
175
array (
176
176
// class name
177
177
'AppCustomAuthenticator ' ,
178
- ))
178
+ )),
179
179
);
180
180
181
181
yield 'migration_with_changes ' => array (MakerTestDetails::createTest (
@@ -203,7 +203,7 @@ public function getCommandTests()
203
203
$ iterator = $ finder ->getIterator ();
204
204
$ iterator ->rewind ();
205
205
$ this ->assertContains (sprintf ('"src/Migrations/%s" ' , $ iterator ->current ()->getFilename ()), $ output );
206
- })
206
+ }),
207
207
);
208
208
209
209
yield 'migration_no_changes ' => array (MakerTestDetails::createTest (
@@ -222,7 +222,7 @@ public function getCommandTests()
222
222
$ this ->assertNotContains ('Success ' , $ output );
223
223
224
224
$ this ->assertContains ('No database changes were detected ' , $ output );
225
- })
225
+ }),
226
226
);
227
227
228
228
yield 'crud ' => array (MakerTestDetails::createTest (
@@ -240,7 +240,7 @@ public function getCommandTests()
240
240
->addExtraDependencies ('symfony/orm-pack ' )
241
241
->assert (function (string $ output , string $ directory ) {
242
242
$ this ->assertContains ('Success ' , $ output );
243
- })
243
+ }),
244
244
);
245
245
}
246
246
0 commit comments