feat(ticket): persist and expose refund details
This commit is contained in:
@@ -98,6 +98,21 @@ class AdminAppTicketExportServiceTest extends TestCase
|
||||
$this->assertStringContainsString('Vianda', $html);
|
||||
}
|
||||
|
||||
public function test_it_uses_the_refund_type_label_when_displaying_a_refunded_status(): void
|
||||
{
|
||||
$row = $this->row();
|
||||
$row['status'] = 'refunded';
|
||||
$row['status_label'] = 'Reembolso parcial';
|
||||
|
||||
$displayRow = (new AdminAppTicketRowService)->displayRows(
|
||||
collect([$row]),
|
||||
$this->columnService()->columns($this->tenant()),
|
||||
'America/La_Paz',
|
||||
)->first();
|
||||
|
||||
$this->assertSame('Reembolso parcial', $displayRow['status']);
|
||||
}
|
||||
|
||||
private function reportService(): AdminAppTicketReportService
|
||||
{
|
||||
$rowService = Mockery::mock(AdminAppTicketRowService::class)->makePartial();
|
||||
|
||||
Reference in New Issue
Block a user