@@ -45,6 +45,9 @@ public function getTestDetails(): \Generator
45
45
'FooTwig ' ,
46
46
]);
47
47
48
+ $ controllerPath = $ runner ->getPath ('templates/foo_twig/index.html.twig ' );
49
+ self ::assertFileExists ($ controllerPath );
50
+
48
51
$ this ->runControllerTest ($ runner , 'it_generates_a_controller_with_twig.php ' );
49
52
}),
50
53
];
@@ -59,6 +62,9 @@ public function getTestDetails(): \Generator
59
62
'FooTwig ' ,
60
63
]);
61
64
65
+ $ controllerPath = $ runner ->getPath ('templates/foo_twig/index.html.twig ' );
66
+ self ::assertFileExists ($ controllerPath );
67
+
62
68
$ this ->runControllerTest ($ runner , 'it_generates_a_controller_with_twig.php ' );
63
69
}),
64
70
];
@@ -100,6 +106,9 @@ public function getTestDetails(): \Generator
100
106
'Admin \\FooBar ' ,
101
107
]);
102
108
109
+ $ controllerPath = $ runner ->getPath ('templates/admin/foo_bar/index.html.twig ' );
110
+ self ::assertFileExists ($ controllerPath );
111
+
103
112
$ this ->assertFileExists ($ runner ->getPath ('templates/admin/foo_bar/index.html.twig ' ));
104
113
}),
105
114
];
@@ -112,6 +121,9 @@ public function getTestDetails(): \Generator
112
121
'\App\Foo\Bar\CoolController ' ,
113
122
]);
114
123
124
+ $ controllerPath = $ runner ->getPath ('templates/foo/bar/cool/index.html.twig ' );
125
+ self ::assertFileExists ($ controllerPath );
126
+
115
127
$ this ->assertStringContainsString ('src/Foo/Bar/CoolController.php ' , $ output );
116
128
$ this ->assertStringContainsString ('templates/foo/bar/cool/index.html.twig ' , $ output );
117
129
}),
@@ -125,6 +137,9 @@ public function getTestDetails(): \Generator
125
137
'FooInvokable ' ,
126
138
], '--invokable ' );
127
139
140
+ $ controllerPath = $ runner ->getPath ('templates/foo_invokable.html.twig ' );
141
+ self ::assertFileExists ($ controllerPath );
142
+
128
143
$ this ->assertStringContainsString ('src/Controller/FooInvokableController.php ' , $ output );
129
144
$ this ->assertStringContainsString ('templates/foo_invokable.html.twig ' , $ output );
130
145
$ this ->runControllerTest ($ runner , 'it_generates_an_invokable_controller.php ' );
@@ -139,6 +154,9 @@ public function getTestDetails(): \Generator
139
154
'Admin \\FooInvokable ' ,
140
155
], '--invokable ' );
141
156
157
+ $ controllerPath = $ runner ->getPath ('templates/admin/foo_invokable.html.twig ' );
158
+ self ::assertFileExists ($ controllerPath );
159
+
142
160
$ this ->assertStringContainsString ('src/Controller/Admin/FooInvokableController.php ' , $ output );
143
161
$ this ->assertStringContainsString ('templates/admin/foo_invokable.html.twig ' , $ output );
144
162
}),
0 commit comments