/** * @dataProvider mockProvider * @param BankAccount $obj */ public function testGet($obj, $mockApiContext) { $mockPayPalRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock(); $mockPayPalRestCall->expects($this->any())->method('execute')->will($this->returnValue(BankAccountTest::getJson())); $result = $obj->get("bankAccountId", $mockApiContext, $mockPayPalRestCall); $this->assertNotNull($result); }
/** * @depends testSerializationDeserialization * @param BankAccountsList $obj */ public function testGetters($obj) { $this->assertEquals($obj->getBankAccounts(), BankAccountTest::getObject()); $this->assertEquals($obj->getCount(), 123); $this->assertEquals($obj->getNextId(), "TestSample"); }