refactor(website): update relationships and migration to use 'website_type_code' instead of 'website_type'
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user