Stripe\Tests\Api\CouponsTest::testDeleteCoupon PHP Метод

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

public testDeleteCoupon ( )
    public function testDeleteCoupon()
    {
        $createResponse = $this->createCoupon();
        $this->assertInstanceOf(Coupons::COUPON_RESPONSE_CLASS, $createResponse);
        $deleteResponse = $this->coupons->deleteCoupon($createResponse->getId());
        $this->assertInstanceOf(Coupons::DELETE_RESPONSE_CLASS, $deleteResponse);
        $this->assertTrue($deleteResponse->getDeleted());
        $this->assertEquals($createResponse->getId(), $deleteResponse->getId());
    }