fix: complete InvesteMoz validation and error corrections

This commit is contained in:
2026-10-29 21:47:33 +02:00
parent 63147312e2
commit daf8623441
718 changed files with 127308 additions and 20959 deletions
@@ -40,7 +40,7 @@ class OpportunityRealEstateDraftTest extends TestCase
public function test_specialized_draft_never_changes_published_version_and_is_disabled_by_default(): void
{
$manager = User::factory()->create();
config(['portal.managers' => [$manager->email]]);
config(['portal.managers' => [$manager->email], 'portal.opportunity_specialized_drafts_enabled' => false]);
$this->actingAs($manager)->postJson('/management/opportunities/drafts', ['creation_key' => (string) Str::uuid(), 'opportunity_category' => 'real_estate', 'real_estate' => ['transaction_type' => 'sale'], 'reason' => 'Incremento desativado mantém compatibilidade ativa'])->assertUnprocessable();
$this->assertSame(0, Opportunity::count());
config(['portal.opportunity_specialized_drafts_enabled' => true]);