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

@@ -5,7 +5,7 @@ namespace Tests\Feature\Forms;
use App\Domains\Auth\Models\User;
use App\Domains\Authorization\Enums\RoleCode;
use App\Domains\Tenant\Models\Tenant;
use App\Domains\Tenant\Models\WebsiteType;
use App\Domains\Tenant\Models\AdminWebsiteType;
use Database\Seeders\AuthorizationSeeder;
use Database\Seeders\SocialMediaSeeder;
use Illuminate\Foundation\Testing\RefreshDatabase;
@@ -21,7 +21,7 @@ class AdminAppEventFormControllerTest extends TestCase
parent::setUp();
$this->seed([AuthorizationSeeder::class, SocialMediaSeeder::class]);
WebsiteType::query()->create([
AdminWebsiteType::query()->create([
'codigo' => 'onticket',
'nombre' => 'OnTicket',
]);
@@ -38,7 +38,7 @@ class AdminAppEventFormControllerTest extends TestCase
'codigo' => 'acme',
'nombre' => 'Acme',
'dominio' => 'acme.test',
'website_type_code' => 'onticket',
'admin_website_type_code' => 'onticket',
]);
$tenant->socialMedia()->attach('instagram', [
'url' => 'https://instagram.com/acme',