[Pkg-owncloud-commits] [php-sabre-vobject] 36/65: Add tests for Section 3.2 of draft…-availability….
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:57:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit a8d75d218187ee7b97cf2285c23ae9f8c5f6f4a6
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Tue Feb 3 11:47:48 2015 +0100
Add tests for Section 3.2 of draft…-availability….
---
tests/VObject/Component/VAvailabilityTest.php | 36 +++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/tests/VObject/Component/VAvailabilityTest.php b/tests/VObject/Component/VAvailabilityTest.php
index a483cb7..37fdae1 100644
--- a/tests/VObject/Component/VAvailabilityTest.php
+++ b/tests/VObject/Component/VAvailabilityTest.php
@@ -284,6 +284,42 @@ VCAL
}
}
+ function testRFCxxxSection3_2() {
+
+ $this->assertEquals(
+ 'BUSY',
+ Reader::read($this->templateAvailable(array(
+ 'BUSYTYPE:BUSY'
+ )))
+ ->VAVAILABILITY
+ ->AVAILABLE
+ ->BUSYTYPE
+ ->getValue()
+ );
+
+ $this->assertEquals(
+ 'BUSY-UNAVAILABLE',
+ Reader::read($this->templateAvailable(array(
+ 'BUSYTYPE:BUSY-UNAVAILABLE'
+ )))
+ ->VAVAILABILITY
+ ->AVAILABLE
+ ->BUSYTYPE
+ ->getValue()
+ );
+
+ $this->assertEquals(
+ 'BUSY-TENTATIVE',
+ Reader::read($this->templateAvailable(array(
+ 'BUSYTYPE:BUSY-TENTATIVE'
+ )))
+ ->VAVAILABILITY
+ ->AVAILABLE
+ ->BUSYTYPE
+ ->getValue()
+ );
+
+ }
protected function assertIsValid(VObject\Document $document) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list