@@ -52,7 +52,8 @@ test('contract report preserves unknown legacy associations without writes and e
|
||||
$this->withoutVite();
|
||||
$before = [DB::table('purchase_orders')->get()->toJson(), DB::table('budget_entries')->get()->toJson(), DB::table('audit_logs')->get()->toJson()];
|
||||
$this->get('/relatorios')->assertOk()->assertInertia(fn (Assert $page) => $page->where('contractInsights.coverage.unknown', 1)
|
||||
->where('contractInsights.coverage.without_contract', 0)->where('contractInsights.currencies.0.amount_minor', '10000'));
|
||||
->where('contractInsights.coverage.without_contract', 0)->where('contractInsights.currencies.0.amount_minor', '10000')
|
||||
->where('deliveryInsights.coverage.unknown', 1)->where('deliveryInsights.records.data.0.late_days', null));
|
||||
$csv = $this->get('/relatorios/contratos.csv')->assertOk()->assertDownload()->streamedContent();
|
||||
expect($csv)->toContain('"Associação por determinar";MZN;1;10000')->toContain('não pagamentos')
|
||||
->and([DB::table('purchase_orders')->get()->toJson(), DB::table('budget_entries')->get()->toJson(), DB::table('audit_logs')->get()->toJson()])->toBe($before);
|
||||
|
||||
Reference in New Issue
Block a user