forked from LiveCarta/PayPal-PHP-SDK
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:
@@ -63,35 +63,6 @@ class WebhookTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($obj->getLinks(), LinksTest::getObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testSerializationDeserialization
|
||||
* @param Webhook $obj
|
||||
*/
|
||||
public function testDeprecatedGetters($obj)
|
||||
{
|
||||
$this->assertEquals($obj->getEvent_types(), WebhookEventTypeTest::getObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testSerializationDeserialization
|
||||
* @param Webhook $obj
|
||||
*/
|
||||
public function testDeprecatedSetterNormalGetter($obj)
|
||||
{
|
||||
|
||||
// Check for Event_types
|
||||
$obj->setEventTypes(null);
|
||||
$this->assertNull($obj->getEvent_types());
|
||||
$this->assertNull($obj->getEventTypes());
|
||||
$this->assertSame($obj->getEventTypes(), $obj->getEvent_types());
|
||||
$obj->setEvent_types(WebhookEventTypeTest::getObject());
|
||||
$this->assertEquals($obj->getEvent_types(), WebhookEventTypeTest::getObject());
|
||||
|
||||
//Test All Deprecated Getters and Normal Getters
|
||||
$this->testDeprecatedGetters($obj);
|
||||
$this->testGetters($obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \InvalidArgumentException
|
||||
* @expectedExceptionMessage Url is not a fully qualified URL
|
||||
|
||||
Reference in New Issue
Block a user