protected function tearDown()
 {
     $this->customers->deleteCustomer($this->customerId);
     $this->coupons->deleteCoupon($this->couponId);
     $this->plans->deletePlan($this->planId);
     parent::tearDown();
 }
 public function testListCustomers()
 {
     $customer1 = $this->customers->createCustomer();
     $customer2 = $this->customers->createCustomer();
     $this->customers->createCustomer();
     $this->customers->createCustomer();
     $request = new ListRequest();
     $request->setLimit(2);
     $list = $this->customers->listCustomers($request);
     $this->assertInstanceOf(Customers::LIST_CUSTOMERS_RESPONSE_CLASS, $list);
     $this->assertEquals(2, sizeof($list->getData()));
     $this->customers->deleteCustomer($customer1->getId());
     $this->customers->deleteCustomer($customer2->getId());
 }
示例#3
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->customers->deleteCustomer($this->customerId);
 }