test(tenant): cover split website types and migration
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user