public function testDeletePlan() { setApiKey(); $plans = \Conekta\Plan::where(); $plan = $plans[0]; $plan->delete(); $this->assertTrue($plan->deleted == true); }
public function testParameterValidationError() { setApiKey(); try { $plan = \Conekta\Plan::create(array('id' => 'gold-plan')); } catch (Exception $e) { $this->assertTrue(strpos(get_class($e), 'ParameterValidationError') !== false); } }
public function testSuccesfulGetToken() { setApiKey(); $token = \Conekta\Plan::find('tok_test_visa_4242'); $this->assertTrue(strpos(get_class($token), 'Token') !== false); }