@@ -85,7 +85,7 @@ public function output_ignores_nullables_if_fake_nullables_configuration_is_set_
85
85
$ this ->files ->expects ('put ' )
86
86
->with ('database/factories/PostFactory.php ' , $ this ->fixture ('factories/fake-nullables.php ' ));
87
87
88
- $ tokens = $ this ->blueprint ->parse ($ this ->fixture ('definitions /readme-example.bp ' ));
88
+ $ tokens = $ this ->blueprint ->parse ($ this ->fixture ('drafts /readme-example.yaml ' ));
89
89
$ tree = $ this ->blueprint ->analyze ($ tokens );
90
90
91
91
$ this ->assertEquals (['created ' => ['database/factories/PostFactory.php ' ]], $ this ->subject ->output ($ tree ));
@@ -110,7 +110,7 @@ public function output_respects_configuration()
110
110
$ this ->files ->expects ('put ' )
111
111
->with ('database/factories/PostFactory.php ' , $ this ->fixture ('factories/post-configured.php ' ));
112
112
113
- $ tokens = $ this ->blueprint ->parse ($ this ->fixture ('definitions /post.bp ' ));
113
+ $ tokens = $ this ->blueprint ->parse ($ this ->fixture ('drafts /post.yaml ' ));
114
114
$ tree = $ this ->blueprint ->analyze ($ tokens );
115
115
116
116
$ this ->assertEquals (['created ' => ['database/factories/PostFactory.php ' ]], $ this ->subject ->output ($ tree ));
@@ -134,7 +134,7 @@ public function output_creates_directory_for_nested_components()
134
134
$ this ->files ->expects ('put ' )
135
135
->with ('database/factories/Admin/UserFactory.php ' , $ this ->fixture ('factories/nested-components.php ' ));
136
136
137
- $ tokens = $ this ->blueprint ->parse ($ this ->fixture ('definitions /nested-components.bp ' ));
137
+ $ tokens = $ this ->blueprint ->parse ($ this ->fixture ('drafts /nested-components.yaml ' ));
138
138
$ tree = $ this ->blueprint ->analyze ($ tokens );
139
139
140
140
$ this ->assertEquals (['created ' => ['database/factories/Admin/UserFactory.php ' ]], $ this ->subject ->output ($ tree ));
@@ -143,15 +143,15 @@ public function output_creates_directory_for_nested_components()
143
143
public function modelTreeDataProvider ()
144
144
{
145
145
return [
146
- ['definitions /phone.bp ' , 'database/factories/PhoneFactory.php ' , 'factories/phone.php ' ],
147
- ['definitions /post.bp ' , 'database/factories/PostFactory.php ' , 'factories/post.php ' ],
148
- ['definitions /team.bp ' , 'database/factories/TeamFactory.php ' , 'factories/team.php ' ],
149
- ['definitions /unconventional.bp ' , 'database/factories/TeamFactory.php ' , 'factories/unconventional.php ' ],
150
- ['definitions /model-modifiers.bp ' , 'database/factories/ModifierFactory.php ' , 'factories/model-modifiers.php ' ],
151
- ['definitions /model-key-constraints.bp ' , 'database/factories/OrderFactory.php ' , 'factories/model-key-constraints.php ' ],
152
- ['definitions /unconventional-foreign-key.bp ' , 'database/factories/StateFactory.php ' , 'factories/unconventional-foreign-key.php ' ],
153
- ['definitions /foreign-key-shorthand.bp ' , 'database/factories/CommentFactory.php ' , 'factories/foreign-key-shorthand.php ' ],
154
- ['definitions /resource-statements.bp ' , 'database/factories/UserFactory.php ' , 'factories/resource-statements.php ' ],
146
+ ['drafts /phone.yaml ' , 'database/factories/PhoneFactory.php ' , 'factories/phone.php ' ],
147
+ ['drafts /post.yaml ' , 'database/factories/PostFactory.php ' , 'factories/post.php ' ],
148
+ ['drafts /team.yaml ' , 'database/factories/TeamFactory.php ' , 'factories/team.php ' ],
149
+ ['drafts /unconventional.yaml ' , 'database/factories/TeamFactory.php ' , 'factories/unconventional.php ' ],
150
+ ['drafts /model-modifiers.yaml ' , 'database/factories/ModifierFactory.php ' , 'factories/model-modifiers.php ' ],
151
+ ['drafts /model-key-constraints.yaml ' , 'database/factories/OrderFactory.php ' , 'factories/model-key-constraints.php ' ],
152
+ ['drafts /unconventional-foreign-key.yaml ' , 'database/factories/StateFactory.php ' , 'factories/unconventional-foreign-key.php ' ],
153
+ ['drafts /foreign-key-shorthand.yaml ' , 'database/factories/CommentFactory.php ' , 'factories/foreign-key-shorthand.php ' ],
154
+ ['drafts /resource-statements.yaml ' , 'database/factories/UserFactory.php ' , 'factories/resource-statements.php ' ],
155
155
];
156
156
}
157
157
}
0 commit comments