/** * Tests the getters and setters of the model * @test */ public function setGetTest() { $url = "www.test.ing"; $email = "*****@*****.**"; $livemode = false; $eventTypes = array("transaction.succeeded", "transaction.failed"); $this->_webhook->setUrl($url)->setEmail($email)->setLivemode($livemode)->setEventTypes($eventTypes); $this->assertEquals($this->_webhook->getUrl(), $url); $this->assertEquals($this->_webhook->getEmail(), $email); $this->assertEquals($this->_webhook->getLivemode(), $livemode); $this->assertEquals($this->_webhook->getEventTypes(), $eventTypes); }