From 06f945f27840b53e57795dadbc38e76f7e11ab1c Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 24 Feb 2014 16:42:14 +0100 Subject: init --- .../Gdata/Calendar/EventQueryExceptionTest.php | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 zend/tests/Zend/Gdata/Calendar/EventQueryExceptionTest.php (limited to 'zend/tests/Zend/Gdata/Calendar/EventQueryExceptionTest.php') diff --git a/zend/tests/Zend/Gdata/Calendar/EventQueryExceptionTest.php b/zend/tests/Zend/Gdata/Calendar/EventQueryExceptionTest.php new file mode 100644 index 0000000..ad78f17 --- /dev/null +++ b/zend/tests/Zend/Gdata/Calendar/EventQueryExceptionTest.php @@ -0,0 +1,68 @@ +query = new Zend_Gdata_Calendar_EventQuery(); + } + + /** + * @expectedException Zend_Gdata_App_Exception + */ + public function testSingleEventsThrowsExceptionOnSetInvalidValue() + { + $this->query->resetParameters(); + $singleEvents = 'puppy'; + $this->query->setUser(self::GOOGLE_DEVELOPER_CALENDAR); + $this->query->setSingleEvents($singleEvents); + } + + /** + * @expectedException Zend_Gdata_App_Exception + */ + public function testFutureEventsThrowsExceptionOnSetInvalidValue() + { + $this->query->resetParameters(); + $futureEvents = 'puppy'; + $this->query->setUser(self::GOOGLE_DEVELOPER_CALENDAR); + $this->query->setFutureEvents($futureEvents); + } + +} -- cgit v1.2.3