@@ -70,7 +70,7 @@ public function output_writes_migration_for_model_tree($definition, $path, $migr
7070 $ this ->files ->expects ('put ' )
7171 ->with ($ timestamp_path , $ this ->fixture ($ migration ));
7272
73- $ tokens = $ this ->blueprint ->parse ($ this ->fixture ($ definition ));
73+ $ tokens = $ this ->blueprint ->parse ($ this ->fixture ($ definition ), $ definition !== ' drafts/indexes.yaml ' );
7474 $ tree = $ this ->blueprint ->analyze ($ tokens );
7575
7676 $ this ->assertEquals (['created ' => [$ timestamp_path ]], $ this ->subject ->output ($ tree ));
@@ -103,7 +103,7 @@ public function output_updates_migration_for_model_tree($definition, $path, $mig
103103 $ this ->files ->expects ('put ' )
104104 ->with ($ yesterday_path , $ this ->fixture ($ migration ));
105105
106- $ tokens = $ this ->blueprint ->parse ($ this ->fixture ($ definition ));
106+ $ tokens = $ this ->blueprint ->parse ($ this ->fixture ($ definition ), $ definition !== ' drafts/indexes.yaml ' );
107107 $ tree = $ this ->blueprint ->analyze ($ tokens );
108108
109109 $ this ->assertEquals (['updated ' => [$ yesterday_path ]], $ this ->subject ->output ($ tree , true ));
@@ -746,6 +746,7 @@ public function modelTreeDataProvider()
746746 ['drafts/soft-deletes.yaml ' , 'database/migrations/timestamp_create_comments_table.php ' , 'migrations/soft-deletes.php ' ],
747747 ['drafts/with-timezones.yaml ' , 'database/migrations/timestamp_create_comments_table.php ' , 'migrations/with-timezones.php ' ],
748748 ['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 ' ],
749750 ['drafts/unconventional.yaml ' , 'database/migrations/timestamp_create_teams_table.php ' , 'migrations/unconventional.php ' ],
750751 ['drafts/optimize.yaml ' , 'database/migrations/timestamp_create_optimizes_table.php ' , 'migrations/optimize.php ' ],
751752 ['drafts/model-key-constraints.yaml ' , 'database/migrations/timestamp_create_orders_table.php ' , 'migrations/model-key-constraints.php ' ],
0 commit comments