refactor(website): update relationships and migration to use 'website_type_code' instead of 'website_type'

This commit is contained in:
2026-07-29 15:03:31 -03:00
parent b9ad2e589f
commit 9e3163b74f
4 changed files with 9 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ class WebsiteExtrasTest extends TestCase
$this->assertEqualsCanonicalizing([
'id',
'website_type',
'website_type_code',
'nombre',
'descripcion',
'is_required',
@@ -68,6 +68,7 @@ class WebsiteExtrasTest extends TestCase
]);
$this->assertTrue($type->extras()->firstOrFail()->is($typeExtra));
$this->assertSame($type->codigo, $typeExtra->website_type_code);
$this->assertTrue($type->tenants()->firstOrFail()->is($tenant));
$this->assertTrue($tenant->websiteType()->firstOrFail()->is($type));
$this->assertSame($type->codigo, $tenant->website_type_code);