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);
    }