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 PresentationTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($obj->getLocaleCode(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Presentation $obj
*/
public function testDeprecatedGetters($obj)
{
$this->assertEquals($obj->getBrand_name(), "TestSample");
$this->assertEquals($obj->getLogo_image(), "TestSample");
$this->assertEquals($obj->getLocale_code(), "TestSample");
}
/**
* @depends testSerializationDeserialization
* @param Presentation $obj
*/
public function testDeprecatedSetterNormalGetter($obj)
{
// Check for Brand_name
$obj->setBrandName(null);
$this->assertNull($obj->getBrand_name());
$this->assertNull($obj->getBrandName());
$this->assertSame($obj->getBrandName(), $obj->getBrand_name());
$obj->setBrand_name("TestSample");
$this->assertEquals($obj->getBrand_name(), "TestSample");
// Check for Logo_image
$obj->setLogoImage(null);
$this->assertNull($obj->getLogo_image());
$this->assertNull($obj->getLogoImage());
$this->assertSame($obj->getLogoImage(), $obj->getLogo_image());
$obj->setLogo_image("TestSample");
$this->assertEquals($obj->getLogo_image(), "TestSample");
// Check for Locale_code
$obj->setLocaleCode(null);
$this->assertNull($obj->getLocale_code());
$this->assertNull($obj->getLocaleCode());
$this->assertSame($obj->getLocaleCode(), $obj->getLocale_code());
$obj->setLocale_code("TestSample");
$this->assertEquals($obj->getLocale_code(), "TestSample");
//Test All Deprecated Getters and Normal Getters
$this->testDeprecatedGetters($obj);
$this->testGetters($obj);
}
}