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

@@ -57,53 +57,4 @@ class InputFieldsTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getAddressOverride(), 123);
}
/**
* @depends testSerializationDeserialization
* @param InputFields $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getAllow_note(), true);
$this->assertEquals($obj->getNo_shipping(), 123);
$this->assertEquals($obj->getAddress_override(), 123);
}
/**
* @depends testSerializationDeserialization
* @param InputFields $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Allow_note
$obj->setAllowNote(null);
$this->assertNull($obj->getAllow_note());
$this->assertNull($obj->getAllowNote());
$this->assertSame($obj->getAllowNote(), $obj->getAllow_note());
$obj->setAllow_note(true);
$this->assertEquals($obj->getAllow_note(), true);
// Check for No_shipping
$obj->setNoShipping(null);
$this->assertNull($obj->getNo_shipping());
$this->assertNull($obj->getNoShipping());
$this->assertSame($obj->getNoShipping(), $obj->getNo_shipping());
$obj->setNo_shipping(123);
$this->assertEquals($obj->getNo_shipping(), 123);
// Check for Address_override
$obj->setAddressOverride(null);
$this->assertNull($obj->getAddress_override());
$this->assertNull($obj->getAddressOverride());
$this->assertSame($obj->getAddressOverride(), $obj->getAddress_override());
$obj->setAddress_override(123);
$this->assertEquals($obj->getAddress_override(), 123);
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}