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 PayoutItemDetailsTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
}
/**
* @depends testSerializationDeserialization
* @param PayoutItemDetails $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getPayout_item_id(), "TestSample");
$this->assertEquals($obj->getTransaction_id(), "TestSample");
$this->assertEquals($obj->getTransaction_status(), "TestSample");
$this->assertEquals($obj->getPayout_item_fee(), CurrencyTest::getObject());
$this->assertEquals($obj->getPayout_batch_id(), "TestSample");
$this->assertEquals($obj->getSender_batch_id(), "TestSample");
$this->assertEquals($obj->getPayout_item(), PayoutItemTest::getObject());
$this->assertEquals($obj->getTime_processed(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param PayoutItemDetails $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Payout_item_id
$obj->setPayoutItemId(null);
$this->assertNull($obj->getPayout_item_id());
$this->assertNull($obj->getPayoutItemId());
$this->assertSame($obj->getPayoutItemId(), $obj->getPayout_item_id());
$obj->setPayout_item_id("TestSample");
$this->assertEquals($obj->getPayout_item_id(), "TestSample");
// 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_status
$obj->setTransactionStatus(null);
$this->assertNull($obj->getTransaction_status());
$this->assertNull($obj->getTransactionStatus());
$this->assertSame($obj->getTransactionStatus(), $obj->getTransaction_status());
$obj->setTransaction_status( "TestSample");
$this->assertEquals($obj->getTransaction_status(), "TestSample");
// Check for Payout_item_fee
$obj->setPayoutItemFee(null);
$this->assertNull($obj->getPayout_item_fee());
$this->assertNull($obj->getPayoutItemFee());
$this->assertSame($obj->getPayoutItemFee(), $obj->getPayout_item_fee());
$obj->setPayout_item_fee(CurrencyTest::getObject());
$this->assertEquals($obj->getPayout_item_fee(), CurrencyTest::getObject());
// Check for Payout_batch_id
$obj->setPayoutBatchId(null);
$this->assertNull($obj->getPayout_batch_id());
$this->assertNull($obj->getPayoutBatchId());
$this->assertSame($obj->getPayoutBatchId(), $obj->getPayout_batch_id());
$obj->setPayout_batch_id("TestSample");
$this->assertEquals($obj->getPayout_batch_id(), "TestSample");
// Check for Sender_batch_id
$obj->setSenderBatchId(null);
$this->assertNull($obj->getSender_batch_id());
$this->assertNull($obj->getSenderBatchId());
$this->assertSame($obj->getSenderBatchId(), $obj->getSender_batch_id());
$obj->setSender_batch_id("TestSample");
$this->assertEquals($obj->getSender_batch_id(), "TestSample");
// Check for Payout_item
$obj->setPayoutItem(null);
$this->assertNull($obj->getPayout_item());
$this->assertNull($obj->getPayoutItem());
$this->assertSame($obj->getPayoutItem(), $obj->getPayout_item());
$obj->setPayout_item(PayoutItemTest::getObject());
$this->assertEquals($obj->getPayout_item(), PayoutItemTest::getObject());
// Check for Time_processed
$obj->setTimeProcessed(null);
$this->assertNull($obj->getTime_processed());
$this->assertNull($obj->getTimeProcessed());
$this->assertSame($obj->getTimeProcessed(), $obj->getTime_processed());
$obj->setTime_processed("TestSample");
$this->assertEquals($obj->getTime_processed(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}