5 use Omnipay\Tests\TestCase;
8 class RestCreatePlanRequestTest
extends TestCase
13 public function setUp()
15 $client = $this->getHttpClient();
16 $request = $this->getHttpRequest();
19 $this->request->initialize(array(
20 'name' =>
'Super Duper Billing Plan',
21 'description' =>
'Test Billing Plan',
23 'paymentDefinitions' => array(
25 'name' =>
'Monthly Payments',
28 'frequency_interval' => 1,
36 'merchantPreferences' => array(
44 $data = $this->request->getData();
45 $this->assertEquals(
'Super Duper Billing Plan', $data[
'name']);
47 $this->assertEquals(
'Monthly Payments', $data[
'payment_definitions'][0][
'name']);