diff --git a/tests/GuPaymentTest.php b/tests/GuPaymentTest.php index 8771e0c..1615657 100644 --- a/tests/GuPaymentTest.php +++ b/tests/GuPaymentTest.php @@ -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); }