test(tenant): cover split website types and migration

This commit is contained in:
2026-09-17 14:25:54 -03:00
parent 6bc784519f
commit 486129a92f
36 changed files with 335 additions and 307 deletions

View File

@@ -3,14 +3,14 @@
namespace Tests\Unit\Bootstrap;
use App\Domains\Bootstrap\Resources\AdminAppBootstrapResource;
use App\Domains\Tenant\Models\WebsiteType;
use App\Domains\Tenant\Models\AdminWebsiteType;
use Tests\TestCase;
class AdminAppBootstrapResourceTest extends TestCase
{
public function test_it_exposes_the_website_type(): void
{
$websiteType = new WebsiteType([
$websiteType = new AdminWebsiteType([
'codigo' => 'shopit',
'nombre' => 'ShopIt',
'dominio' => 'admin.shopit.test',
@@ -23,7 +23,7 @@ class AdminAppBootstrapResourceTest extends TestCase
'website_type' => $websiteType,
])->resolve(request());
$this->assertSame('shopit', $data['website_type_code']);
$this->assertSame('shopit', $data['admin_website_type_code']);
$this->assertSame('ShopIt Website Type', $data['site_title']);
$this->assertNull($data['favicon']);
$this->assertArrayNotHasKey('forms', $data);