/** @test */ function it_has_shortcut_methods() { $refund = new Refund(); $payment = Payment::fromArray(['id' => 'PM123']); $refund->of($payment)->returning(100)->totalling(150); $this->assertSame(100, $refund->getAmount()); $this->assertSame(150, $refund->getTotalAmountConfirmation()); $this->assertAttributeSame($payment, 'payment', $refund); }