@@ -75,6 +75,10 @@ public function output_generates_models($definition, $path, $model)
75
75
->with ('model/method.stub ' )
76
76
->andReturn (file_get_contents ('stubs/model/method.stub ' ));
77
77
78
+ $ this ->files ->shouldReceive ('stub ' )
79
+ ->with ('model/method-comment.stub ' )
80
+ ->andReturn (file_get_contents ('stubs/model/method-comment.stub ' ));
81
+
78
82
$ this ->files ->expects ('exists ' )
79
83
->with (dirname ($ path ))
80
84
->andReturnTrue ();
@@ -186,6 +190,10 @@ public function output_generates_phpdoc_for_model($definition, $path, $model)
186
190
->with ('model/method.stub ' )
187
191
->andReturn (file_get_contents ('stubs/model/method.stub ' ));
188
192
193
+ $ this ->files ->shouldReceive ('stub ' )
194
+ ->with ('model/method-comment.stub ' )
195
+ ->andReturn (file_get_contents ('stubs/model/method-comment.stub ' ));
196
+
189
197
$ this ->files ->expects ('exists ' )
190
198
->with (dirname ($ path ))
191
199
->andReturnTrue ();
@@ -215,6 +223,7 @@ public function docBlockModelsDataProvider()
215
223
return [
216
224
['definitions/readme-example.bp ' , 'app/Post.php ' , 'models/readme-example-phpdoc.php ' ],
217
225
['definitions/soft-deletes.bp ' , 'app/Comment.php ' , 'models/soft-deletes-phpdoc.php ' ],
226
+ ['definitions/relationships.bp ' , 'app/Comment.php ' , 'models/relationships-phpdoc.php ' ],
218
227
['definitions/disable-auto-columns.bp ' , 'app/State.php ' , 'models/disable-auto-columns-phpdoc.php ' ],
219
228
];
220
229
}
0 commit comments