<?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',
        ]);
    }
}
