We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e73571 commit d355991Copy full SHA for d355991
tests/GuPaymentTest.php
@@ -791,7 +791,7 @@ public function testDuplicateInvoice()
791
$this->assertEquals('canceled', $canceledInvoice->status);
792
$this->assertEquals('pending', $invoiceDuplicate->status);
793
$this->assertEquals($canceledInvoice->total_cents, $invoiceDuplicate->total_cents);
794
- $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"));
795
$this->assertSameSize($canceledInvoice->items, $invoiceDuplicate->items);
796
797
}
0 commit comments