@@ -53,6 +53,7 @@ public function output_writes_migration_for_model_tree($definition, $path, $mode
53
53
->with ('stubs/model/class.stub ' )
54
54
->andReturn (file_get_contents ('stubs/model/class.stub ' ));
55
55
56
+ // TODO: remove conditional expectations
56
57
if ($ iteration === 0 ) {
57
58
$ this ->files ->expects ('get ' )
58
59
->with ('stubs/model/fillable.stub ' )
@@ -67,7 +68,7 @@ public function output_writes_migration_for_model_tree($definition, $path, $mode
67
68
->andReturn (file_get_contents ('stubs/model/dates.stub ' ));
68
69
}
69
70
70
- if ($ definition === 'definitions/relationships .bp ' ) {
71
+ if ($ definition === 'definitions/soft-deletes .bp ' ) {
71
72
$ this ->files ->expects ('get ' )
72
73
->with ('stubs/model/method.stub ' )
73
74
->andReturn (file_get_contents ('stubs/model/method.stub ' ));
@@ -88,8 +89,8 @@ public function modelTreeDataProvider()
88
89
{
89
90
return [
90
91
['definitions/readme-example.bp ' , 'app/Post.php ' , 'models/readme-example.php ' ],
92
+ ['definitions/with-timezones.bp ' , 'app/Comment.php ' , 'models/comment.php ' ],
91
93
['definitions/soft-deletes.bp ' , 'app/Comment.php ' , 'models/soft-deletes.php ' ],
92
- ['definitions/with-timezones.bp ' , 'app/Comment.php ' , 'models/soft-deletes.php ' ],
93
94
['definitions/relationships.bp ' , 'app/Comment.php ' , 'models/relationships.php ' ],
94
95
];
95
96
}
0 commit comments