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

@@ -89,161 +89,4 @@ class SearchTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getTotalCountRequired(), true);
}
/**
* @depends testSerializationDeserialization
* @param Search $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getRecipient_first_name(), "TestSample");
$this->assertEquals($obj->getRecipient_last_name(), "TestSample");
$this->assertEquals($obj->getRecipient_business_name(), "TestSample");
$this->assertEquals($obj->getLower_total_amount(), CurrencyTest::getObject());
$this->assertEquals($obj->getUpper_total_amount(), CurrencyTest::getObject());
$this->assertEquals($obj->getStart_invoice_date(), "TestSample");
$this->assertEquals($obj->getEnd_invoice_date(), "TestSample");
$this->assertEquals($obj->getStart_due_date(), "TestSample");
$this->assertEquals($obj->getEnd_due_date(), "TestSample");
$this->assertEquals($obj->getStart_payment_date(), "TestSample");
$this->assertEquals($obj->getEnd_payment_date(), "TestSample");
$this->assertEquals($obj->getStart_creation_date(), "TestSample");
$this->assertEquals($obj->getEnd_creation_date(), "TestSample");
$this->assertEquals($obj->getPage_size(), "12.34");
$this->assertEquals($obj->getTotal_count_required(), true);
}
/**
* @depends testSerializationDeserialization
* @param Search $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Recipient_first_name
$obj->setRecipientFirstName(null);
$this->assertNull($obj->getRecipient_first_name());
$this->assertNull($obj->getRecipientFirstName());
$this->assertSame($obj->getRecipientFirstName(), $obj->getRecipient_first_name());
$obj->setRecipient_first_name("TestSample");
$this->assertEquals($obj->getRecipient_first_name(), "TestSample");
// Check for Recipient_last_name
$obj->setRecipientLastName(null);
$this->assertNull($obj->getRecipient_last_name());
$this->assertNull($obj->getRecipientLastName());
$this->assertSame($obj->getRecipientLastName(), $obj->getRecipient_last_name());
$obj->setRecipient_last_name("TestSample");
$this->assertEquals($obj->getRecipient_last_name(), "TestSample");
// Check for Recipient_business_name
$obj->setRecipientBusinessName(null);
$this->assertNull($obj->getRecipient_business_name());
$this->assertNull($obj->getRecipientBusinessName());
$this->assertSame($obj->getRecipientBusinessName(), $obj->getRecipient_business_name());
$obj->setRecipient_business_name("TestSample");
$this->assertEquals($obj->getRecipient_business_name(), "TestSample");
// Check for Lower_total_amount
$obj->setLowerTotalAmount(null);
$this->assertNull($obj->getLower_total_amount());
$this->assertNull($obj->getLowerTotalAmount());
$this->assertSame($obj->getLowerTotalAmount(), $obj->getLower_total_amount());
$obj->setLower_total_amount(CurrencyTest::getObject());
$this->assertEquals($obj->getLower_total_amount(), CurrencyTest::getObject());
// Check for Upper_total_amount
$obj->setUpperTotalAmount(null);
$this->assertNull($obj->getUpper_total_amount());
$this->assertNull($obj->getUpperTotalAmount());
$this->assertSame($obj->getUpperTotalAmount(), $obj->getUpper_total_amount());
$obj->setUpper_total_amount(CurrencyTest::getObject());
$this->assertEquals($obj->getUpper_total_amount(), CurrencyTest::getObject());
// Check for Start_invoice_date
$obj->setStartInvoiceDate(null);
$this->assertNull($obj->getStart_invoice_date());
$this->assertNull($obj->getStartInvoiceDate());
$this->assertSame($obj->getStartInvoiceDate(), $obj->getStart_invoice_date());
$obj->setStart_invoice_date("TestSample");
$this->assertEquals($obj->getStart_invoice_date(), "TestSample");
// Check for End_invoice_date
$obj->setEndInvoiceDate(null);
$this->assertNull($obj->getEnd_invoice_date());
$this->assertNull($obj->getEndInvoiceDate());
$this->assertSame($obj->getEndInvoiceDate(), $obj->getEnd_invoice_date());
$obj->setEnd_invoice_date("TestSample");
$this->assertEquals($obj->getEnd_invoice_date(), "TestSample");
// Check for Start_due_date
$obj->setStartDueDate(null);
$this->assertNull($obj->getStart_due_date());
$this->assertNull($obj->getStartDueDate());
$this->assertSame($obj->getStartDueDate(), $obj->getStart_due_date());
$obj->setStart_due_date("TestSample");
$this->assertEquals($obj->getStart_due_date(), "TestSample");
// Check for End_due_date
$obj->setEndDueDate(null);
$this->assertNull($obj->getEnd_due_date());
$this->assertNull($obj->getEndDueDate());
$this->assertSame($obj->getEndDueDate(), $obj->getEnd_due_date());
$obj->setEnd_due_date("TestSample");
$this->assertEquals($obj->getEnd_due_date(), "TestSample");
// Check for Start_payment_date
$obj->setStartPaymentDate(null);
$this->assertNull($obj->getStart_payment_date());
$this->assertNull($obj->getStartPaymentDate());
$this->assertSame($obj->getStartPaymentDate(), $obj->getStart_payment_date());
$obj->setStart_payment_date("TestSample");
$this->assertEquals($obj->getStart_payment_date(), "TestSample");
// Check for End_payment_date
$obj->setEndPaymentDate(null);
$this->assertNull($obj->getEnd_payment_date());
$this->assertNull($obj->getEndPaymentDate());
$this->assertSame($obj->getEndPaymentDate(), $obj->getEnd_payment_date());
$obj->setEnd_payment_date("TestSample");
$this->assertEquals($obj->getEnd_payment_date(), "TestSample");
// Check for Start_creation_date
$obj->setStartCreationDate(null);
$this->assertNull($obj->getStart_creation_date());
$this->assertNull($obj->getStartCreationDate());
$this->assertSame($obj->getStartCreationDate(), $obj->getStart_creation_date());
$obj->setStart_creation_date("TestSample");
$this->assertEquals($obj->getStart_creation_date(), "TestSample");
// Check for End_creation_date
$obj->setEndCreationDate(null);
$this->assertNull($obj->getEnd_creation_date());
$this->assertNull($obj->getEndCreationDate());
$this->assertSame($obj->getEndCreationDate(), $obj->getEnd_creation_date());
$obj->setEnd_creation_date("TestSample");
$this->assertEquals($obj->getEnd_creation_date(), "TestSample");
// Check for Page_size
$obj->setPageSize(null);
$this->assertNull($obj->getPage_size());
$this->assertNull($obj->getPageSize());
$this->assertSame($obj->getPageSize(), $obj->getPage_size());
$obj->setPage_size("12.34");
$this->assertEquals($obj->getPage_size(), "12.34");
// Check for Total_count_required
$obj->setTotalCountRequired(null);
$this->assertNull($obj->getTotal_count_required());
$this->assertNull($obj->getTotalCountRequired());
$this->assertSame($obj->getTotalCountRequired(), $obj->getTotal_count_required());
$obj->setTotal_count_required(true);
$this->assertEquals($obj->getTotal_count_required(), true);
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}