fix: complete InvesteMoz validation and error corrections
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user