Stripe\Tests\Api\InvoicesTest::testGetInvoice PHP Метод

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

public testGetInvoice ( )
    public function testGetInvoice()
    {
        $this->client->post('invoiceitems', null, array('customer' => $this->customerId, 'amount' => 350, 'currency' => 'usd'));
        $request = $this->invoices->createInvoiceRequest($this->customerId);
        $createResponse = $this->invoices->createInvoice($request);
        $this->assertInstanceOf(Invoices::INVOICE_RESPONSE_CLASS, $createResponse);
        $invoice = $this->invoices->getInvoice($createResponse->getId());
        $this->assertInstanceOf(Invoices::INVOICE_RESPONSE_CLASS, $invoice);
    }