コード例 #1
0
 public function testDeletePlan()
 {
     $createResponse = $this->createPlan();
     $deleteResponse = $this->plans->deletePlan($createResponse->getId());
     $this->assertInstanceOf(Plans::DELETE_RESPONSE_CLASS, $deleteResponse);
     $this->assertTrue($deleteResponse->getDeleted());
 }
コード例 #2
0
 protected function tearDown()
 {
     $this->customers->deleteCustomer($this->customerId);
     $this->coupons->deleteCoupon($this->couponId);
     $this->plans->deletePlan($this->planId);
     parent::tearDown();
 }
コード例 #3
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->client->request('DELETE', 'customers/' . $this->customerId);
     $this->plans->deletePlan($this->planId);
 }