@@ -70,7 +70,7 @@ public function output_writes_migration_for_model_tree($definition, $path, $migr
70
70
$ this ->files ->expects ('put ' )
71
71
->with ($ timestamp_path , $ this ->fixture ($ migration ));
72
72
73
- $ tokens = $ this ->blueprint ->parse ($ this ->fixture ($ definition ));
73
+ $ tokens = $ this ->blueprint ->parse ($ this ->fixture ($ definition ), $ definition !== ' drafts/indexes.yaml ' );
74
74
$ tree = $ this ->blueprint ->analyze ($ tokens );
75
75
76
76
$ this ->assertEquals (['created ' => [$ timestamp_path ]], $ this ->subject ->output ($ tree ));
@@ -103,7 +103,7 @@ public function output_updates_migration_for_model_tree($definition, $path, $mig
103
103
$ this ->files ->expects ('put ' )
104
104
->with ($ yesterday_path , $ this ->fixture ($ migration ));
105
105
106
- $ tokens = $ this ->blueprint ->parse ($ this ->fixture ($ definition ));
106
+ $ tokens = $ this ->blueprint ->parse ($ this ->fixture ($ definition ), $ definition !== ' drafts/indexes.yaml ' );
107
107
$ tree = $ this ->blueprint ->analyze ($ tokens );
108
108
109
109
$ this ->assertEquals (['updated ' => [$ yesterday_path ]], $ this ->subject ->output ($ tree , true ));
@@ -746,6 +746,7 @@ public function modelTreeDataProvider()
746
746
['drafts/soft-deletes.yaml ' , 'database/migrations/timestamp_create_comments_table.php ' , 'migrations/soft-deletes.php ' ],
747
747
['drafts/with-timezones.yaml ' , 'database/migrations/timestamp_create_comments_table.php ' , 'migrations/with-timezones.php ' ],
748
748
['drafts/relationships.yaml ' , 'database/migrations/timestamp_create_comments_table.php ' , 'migrations/relationships.php ' ],
749
+ ['drafts/indexes.yaml ' , 'database/migrations/timestamp_create_posts_table.php ' , 'migrations/indexes.php ' ],
749
750
['drafts/unconventional.yaml ' , 'database/migrations/timestamp_create_teams_table.php ' , 'migrations/unconventional.php ' ],
750
751
['drafts/optimize.yaml ' , 'database/migrations/timestamp_create_optimizes_table.php ' , 'migrations/optimize.php ' ],
751
752
['drafts/model-key-constraints.yaml ' , 'database/migrations/timestamp_create_orders_table.php ' , 'migrations/model-key-constraints.php ' ],
0 commit comments