feat: enable full cart editing for Desfile tenant and update related tests

This commit is contained in:
2026-08-20 15:12:20 -03:00
parent 1776cfe581
commit ae6149df84
6 changed files with 68 additions and 12 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace Tests\Feature\Migrations;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class EnableFullCartEditingForDesfileTest extends TestCase
{
use RefreshDatabase;
public function test_it_enables_quantity_variant_and_removal_changes_for_desfile(): void
{
$migration = require database_path(
'migrations/2026_08_20_020000_enable_full_cart_editing_for_desfile.php'
);
$migration->down();
$migration->up();
$this->assertDatabaseHas('tenants', [
'codigo' => 'desfile_pura_tendencia',
'cart_editing_policy' => 'full',
]);
}
}