fix: complete InvesteMoz validation and error corrections
This commit is contained in:
@@ -5,6 +5,7 @@ namespace Tests\Feature;
|
||||
use App\Models\Opportunity;
|
||||
use App\Models\User;
|
||||
use App\Services\CorridorAgribusinessOpportunities;
|
||||
use App\Services\InvestorContext;
|
||||
use App\Services\OpportunityManagement;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
@@ -51,7 +52,7 @@ final class CorridorAgribusinessInvestorPathTest extends TestCase
|
||||
$interestId = $this->postJson('/investidor/manifestacoes', ['opportunity_id' => $record->id])->assertCreated()->json('id');
|
||||
$this->getJson('/investidor/manifestacoes/'.$interestId)->assertOk();
|
||||
$this->assertSame(1, DB::table('desk_cases')->where('id', $id)->count());
|
||||
$this->assertSame('opportunity:'.$record->id, app(\App\Services\InvestorContext::class)->view($investor, $id)['context']['selection']['opportunity']['key']);
|
||||
$this->assertSame('opportunity:'.$record->id, app(InvestorContext::class)->view($investor, $id)['context']['selection']['opportunity']['key']);
|
||||
// All synthetic investor/path/disclosure writes roll back with this test.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user