class SchemaUpdaterTest extends TestCase
{ public function testDefaultFields(): void
{ $entity =
[ 'name' => 'custom_entity_empty_entity',
'fields' => '[]',
];
$schema =
new Schema();
$updater =
new SchemaUpdater();
$updater->
applyCustomEntities($schema,
[$entity]);
$this->
assertColumns($schema, 'custom_entity_empty_entity',
['id', 'created_at', 'updated_at'
]);
} public function testShortPrefix(): void
{ $entity =
[ 'name' => 'ce_empty_entity',
'fields' => '[]',
];