Browse Source

Zend_Gdata_Extension_FeedLink's readOnly property should be a boolean, so test for that.

Rob Allen 12 years ago
parent
commit
f2b70e479a
1 changed files with 7 additions and 7 deletions
  1. 7 7
      tests/Zend/Gdata/FeedLinkTest.php

+ 7 - 7
tests/Zend/Gdata/FeedLinkTest.php

@@ -67,12 +67,12 @@ class Zend_Gdata_FeedLinkTest extends PHPUnit_Framework_TestCase
         $this->feedLink->href = "http://www.google.com/calendar/feeds/default/private/full";
         $this->feedLink->rel = "via";
         $this->feedLink->countHint = "5";
-        $this->feedLink->readOnly = "false";
+        $this->feedLink->readOnly = false;
 
         $this->assertEquals("http://www.google.com/calendar/feeds/default/private/full", $this->feedLink->href);
         $this->assertEquals("via", $this->feedLink->rel);
         $this->assertEquals("5", $this->feedLink->countHint);
-        $this->assertEquals("false", $this->feedLink->readOnly);
+        $this->assertEquals(false, $this->feedLink->readOnly);
 
         $this->assertEquals(0, count($this->feedLink->extensionElements));
         $newFeedLink = new Zend_Gdata_Extension_FeedLink();
@@ -84,7 +84,7 @@ class Zend_Gdata_FeedLinkTest extends PHPUnit_Framework_TestCase
         $this->assertEquals("http://www.google.com/calendar/feeds/default/private/full", $newFeedLink->href);
         $this->assertEquals("via", $newFeedLink->rel);
         $this->assertEquals("5", $newFeedLink->countHint);
-        $this->assertEquals("false", $newFeedLink->readOnly);
+        $this->assertEquals(false, $newFeedLink->readOnly);
 
         /* try constructing using magic factory */
         $gdata = new Zend_Gdata();
@@ -94,7 +94,7 @@ class Zend_Gdata_FeedLinkTest extends PHPUnit_Framework_TestCase
         $this->assertEquals("http://www.google.com/calendar/feeds/default/private/full", $newFeedLink2->href);
         $this->assertEquals("via", $newFeedLink2->rel);
         $this->assertEquals("5", $newFeedLink2->countHint);
-        $this->assertEquals("false", $newFeedLink2->readOnly);
+        $this->assertEquals(false, $newFeedLink2->readOnly);
     }
 
     public function testEmptyFeedLinkToAndFromStringShouldMatch() {
@@ -109,7 +109,7 @@ class Zend_Gdata_FeedLinkTest extends PHPUnit_Framework_TestCase
         $this->feedLink->href = "http://www.google.com/calendar/feeds/default/private/full";
         $this->feedLink->rel = "via";
         $this->feedLink->countHint = "5";
-        $this->feedLink->readOnly = "false";
+        $this->feedLink->readOnly = false;
         $feedLinkXml = $this->feedLink->saveXML();
         $newFeedLink = new Zend_Gdata_Extension_FeedLink();
         $newFeedLink->transferFromXML($feedLinkXml);
@@ -118,7 +118,7 @@ class Zend_Gdata_FeedLinkTest extends PHPUnit_Framework_TestCase
         $this->assertEquals("http://www.google.com/calendar/feeds/default/private/full", $this->feedLink->href);
         $this->assertEquals("via", $this->feedLink->rel);
         $this->assertEquals("5", $this->feedLink->countHint);
-        $this->assertEquals("false", $this->feedLink->readOnly);
+        $this->assertEquals(false, $this->feedLink->readOnly);
     }
 
     public function testExtensionAttributes() {
@@ -140,7 +140,7 @@ class Zend_Gdata_FeedLinkTest extends PHPUnit_Framework_TestCase
         $this->assertEquals("http://www.google.com/calendar/feeds/default/private/full/3tsi3ag1q40bnsik88k25sgpss/comments", $this->feedLink->href);
         $this->assertEquals("http://schemas.google.com/g/2005#feed", $this->feedLink->rel);
         $this->assertEquals("0", $this->feedLink->countHint);
-        $this->assertEquals("true", $this->feedLink->readOnly);
+        $this->assertEquals(true, $this->feedLink->readOnly);
         $this->assertTrue($this->feedLink->feed instanceof Zend_Gdata_App_Feed);
         $this->assertEquals("Comments for: Sample Event", $this->feedLink->feed->title->text);
     }