refactor(tenants): remove general write endpoints

This commit is contained in:
2026-09-21 15:18:48 -03:00
parent fcb8386735
commit f4de2ff5b2
15 changed files with 40 additions and 1608 deletions

View File

@@ -2,13 +2,13 @@
namespace Tests\Feature\Catalog;
use App\Shared\Attachable\Enums\AttachmentType;
use App\Shared\Attachable\Models\Attachment;
use App\Domains\Commerce\Catalog\Enums\GroupLayout;
use App\Domains\Commerce\Catalog\Enums\ProductLayout;
use App\Domains\Commerce\Catalog\Models\CatalogItem;
use App\Domains\Commerce\Catalog\Models\Inventory;
use App\Domains\Core\Tenant\Models\Tenant;
use App\Shared\Attachable\Enums\AttachmentType;
use App\Shared\Attachable\Models\Attachment;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
@@ -32,15 +32,11 @@ class CatalogSearchTest extends TestCase
{
$tenant = $this->createTenant('search-config');
$this->putJson("/api/tenants/{$tenant->codigo}", [
$tenant->update([
'search_product_layout' => ProductLayout::Row->value,
'search_group_layout' => GroupLayout::SimpleVertical->value,
'search_items_per_page' => 24,
])
->assertOk()
->assertJsonPath('data.search_product_layout', ProductLayout::Row->value)
->assertJsonPath('data.search_group_layout', GroupLayout::SimpleVertical->value)
->assertJsonPath('data.search_items_per_page', 24);
]);
$this->getJson('/api/tenants/bootstrap?'.http_build_query([
'dominio' => $tenant->dominio,