Skip to content

Commit d355991

Browse files
committed
test: verifica se log existe em todos os logs
1 parent 8e73571 commit d355991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/GuPaymentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ public function testDuplicateInvoice()
791791
$this->assertEquals('canceled', $canceledInvoice->status);
792792
$this->assertEquals('pending', $invoiceDuplicate->status);
793793
$this->assertEquals($canceledInvoice->total_cents, $invoiceDuplicate->total_cents);
794-
$this->assertEquals($invoiceDuplicate->logs[0]->notes, "Segunda via gerada da FATURA # ".$canceledInvoice->id);
794+
$this->assertNotEmpty(array_filter($invoiceDuplicate->logs, fn($log) => $log->notes == "Segunda via gerada da FATURA # $canceledInvoice->id"));
795795
$this->assertSameSize($canceledInvoice->items, $invoiceDuplicate->items);
796796

797797
}

0 commit comments

Comments
 (0)