Removed Deprecated Getter and Setters

- Removed Deprecated Getter Setters from all Model Classes
- All Camelcase getters and setters are removed. Please use first letter uppercase syntax
- E.g. instead of using get_notify_url(), use getNotifyUrl() instead
This commit is contained in:
japatel
2015-01-08 22:23:58 -06:00
parent ed2a4fd41e
commit b011d17cde
150 changed files with 47 additions and 10994 deletions

View File

@@ -71,98 +71,4 @@ class AgreementTransactionTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getTimeZone(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param AgreementTransaction $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getTransaction_id(), "TestSample");
$this->assertEquals($obj->getTransaction_type(), "TestSample");
$this->assertEquals($obj->getFee_amount(), CurrencyTest::getObject());
$this->assertEquals($obj->getNet_amount(), CurrencyTest::getObject());
$this->assertEquals($obj->getPayer_email(), "TestSample");
$this->assertEquals($obj->getPayer_name(), "TestSample");
$this->assertEquals($obj->getTime_updated(), "TestSample");
$this->assertEquals($obj->getTime_zone(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param AgreementTransaction $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Transaction_id
$obj->setTransactionId(null);
$this->assertNull($obj->getTransaction_id());
$this->assertNull($obj->getTransactionId());
$this->assertSame($obj->getTransactionId(), $obj->getTransaction_id());
$obj->setTransaction_id("TestSample");
$this->assertEquals($obj->getTransaction_id(), "TestSample");
// Check for Transaction_type
$obj->setTransactionType(null);
$this->assertNull($obj->getTransaction_type());
$this->assertNull($obj->getTransactionType());
$this->assertSame($obj->getTransactionType(), $obj->getTransaction_type());
$obj->setTransaction_type("TestSample");
$this->assertEquals($obj->getTransaction_type(), "TestSample");
// Check for Fee_amount
$obj->setFeeAmount(null);
$this->assertNull($obj->getFee_amount());
$this->assertNull($obj->getFeeAmount());
$this->assertSame($obj->getFeeAmount(), $obj->getFee_amount());
$obj->setFee_amount(CurrencyTest::getObject());
$this->assertEquals($obj->getFee_amount(), CurrencyTest::getObject());
// Check for Net_amount
$obj->setNetAmount(null);
$this->assertNull($obj->getNet_amount());
$this->assertNull($obj->getNetAmount());
$this->assertSame($obj->getNetAmount(), $obj->getNet_amount());
$obj->setNet_amount(CurrencyTest::getObject());
$this->assertEquals($obj->getNet_amount(), CurrencyTest::getObject());
// Check for Payer_email
$obj->setPayerEmail(null);
$this->assertNull($obj->getPayer_email());
$this->assertNull($obj->getPayerEmail());
$this->assertSame($obj->getPayerEmail(), $obj->getPayer_email());
$obj->setPayer_email("TestSample");
$this->assertEquals($obj->getPayer_email(), "TestSample");
// Check for Payer_name
$obj->setPayerName(null);
$this->assertNull($obj->getPayer_name());
$this->assertNull($obj->getPayerName());
$this->assertSame($obj->getPayerName(), $obj->getPayer_name());
$obj->setPayer_name("TestSample");
$this->assertEquals($obj->getPayer_name(), "TestSample");
// Check for Time_updated
$obj->setTimeUpdated(null);
$this->assertNull($obj->getTime_updated());
$this->assertNull($obj->getTimeUpdated());
$this->assertSame($obj->getTimeUpdated(), $obj->getTime_updated());
$obj->setTime_updated("TestSample");
$this->assertEquals($obj->getTime_updated(), "TestSample");
// Check for Time_zone
$obj->setTimeZone(null);
$this->assertNull($obj->getTime_zone());
$this->assertNull($obj->getTimeZone());
$this->assertSame($obj->getTimeZone(), $obj->getTime_zone());
$obj->setTime_zone("TestSample");
$this->assertEquals($obj->getTime_zone(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}