66
77use Cycle \Annotated \Entities ;
88use Cycle \Annotated \Locator \TokenizerEntityLocator ;
9+ use Cycle \Annotated \MergeColumns ;
10+ use Cycle \Annotated \MergeIndexes ;
911use Cycle \ORM \SchemaInterface ;
1012use Cycle \Schema \Compiler ;
13+ use Cycle \Schema \Generator \GenerateRelations ;
14+ use Cycle \Schema \Generator \GenerateTypecast ;
15+ use Cycle \Schema \Generator \RenderRelations ;
1116use Cycle \Schema \Generator \RenderTables ;
17+ use Cycle \Schema \Generator \ResetTables ;
1218use Cycle \Schema \Generator \SyncTables ;
19+ use Cycle \Schema \Generator \ValidateEntities ;
1320use Cycle \Schema \Registry ;
1421use PHPUnit \Framework \Attributes \DataProvider ;
1522use Spiral \Attributes \ReaderInterface ;
@@ -34,8 +41,15 @@ public function testObsoleteColumn(ReaderInterface $reader): void
3441
3542 $ schema = (new Compiler ())->compile ($ r , [
3643 new Entities (new TokenizerEntityLocator ($ locator , $ reader ), $ reader ),
44+ new ResetTables (),
45+ new MergeColumns ($ reader ),
46+ new GenerateRelations (),
47+ new ValidateEntities (),
3748 new RenderTables (),
49+ new RenderRelations (),
50+ new MergeIndexes ($ reader ),
3851 new SyncTables (),
52+ new GenerateTypecast (),
3953 ]);
4054
4155 $ this ->assertArrayNotHasKey ('skype ' , $ schema ['user ' ][SchemaInterface::COLUMNS ]);
0 commit comments