/** * Check the consistency of an album feed request for specifically-sized images */ public function testImgAlbumQuery() { $queryString = "https://picasaweb.google.com/data/feed/api/user/sample.user/albumid/1?imgmax=800"; $query = new Zend_Gdata_Photos_AlbumQuery(); $query->setUser("sample.user"); $query->setAlbumId("1"); $query->setImgMax("800"); // Assert that the set ImgMax is correct $this->assertEquals("800", $query->getImgMax()); $generatedString = $query->getQueryUrl(); // Assert that the generated query matches the correct one $this->assertEquals($queryString, $generatedString); // Check that ImgMax is set back to null $queryString = "https://picasaweb.google.com/data/feed/api/user/sample.user/albumid/1"; $query->setImgMax(null); $generatedString = $query->getQueryUrl(); // Assert that the generated query matches the correct one $this->assertEquals($queryString, $generatedString); }