protected function tearDown() { $this->customers->deleteCustomer($this->customerId); $this->coupons->deleteCoupon($this->couponId); $this->plans->deletePlan($this->planId); parent::tearDown(); }
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()); }