/** * @see ApiAbstract::getApiUrl() */ public function testGetApiUrlCredentialOverride() { $apiUrl = 'http://apiurl.com'; $this->credentials->setApiUrl($apiUrl); $rs = $this->object->getApiUrl(); $this->assertInternalType('string', $rs); }
/** * @see MerchantCredentials::setApiUrl() */ public function testSetApiUrlNewInstance() { $this->object = new MerchantCredentials(); $apiUrl = 'apiUrl_' . rand(1, 1000); $rs = $this->object->setApiUrl($apiUrl); $this->assertInstanceOf('\\PayU\\Merchant\\MerchantCredentials', $rs); $rs = $this->object->getApiUrl(); $this->assertInternalType('string', $rs); $this->assertEquals($apiUrl, $rs); }