Skip to content

Commit

Permalink
test: verifica se log existe em todos os logs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewalkermo committed Dec 11, 2023
1 parent 8e73571 commit d355991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/GuPaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ public function testDuplicateInvoice()
$this->assertEquals('canceled', $canceledInvoice->status);
$this->assertEquals('pending', $invoiceDuplicate->status);
$this->assertEquals($canceledInvoice->total_cents, $invoiceDuplicate->total_cents);
$this->assertEquals($invoiceDuplicate->logs[0]->notes, "Segunda via gerada da FATURA # ".$canceledInvoice->id);
$this->assertNotEmpty(array_filter($invoiceDuplicate->logs, fn($log) => $log->notes == "Segunda via gerada da FATURA # $canceledInvoice->id"));
$this->assertSameSize($canceledInvoice->items, $invoiceDuplicate->items);

}
Expand Down

0 comments on commit d355991

Please sign in to comment.