discount() публичный Метод

Get the discount amount.
public discount ( ) : string
Результат string
 public function testDiscountCanBeRetrieved()
 {
     $invoice = new Invoice($billable = m::mock('Laravel\\Cashier\\Contracts\\Billable'), (object) ['total' => 10000, 'subtotal' => 20000, 'currency' => 'usd']);
     $billable->shouldReceive('addCurrencySymbol')->andReturn('$100');
     $billable->shouldReceive('getCurrencyLocale')->andReturn('en_US');
     $this->assertEquals(100.0, $invoice->discount());
     $this->assertEquals('$100', $invoice->discountCurrency());
 }