function FlickrApiTestCase::testPhpFlickrClass in Flickr API 6
Same name and namespace in other branches
- 7.2 tests/flickrapi.test \FlickrApiTestCase::testPhpFlickrClass()
- 7 tests/flickrapi.test \FlickrApiTestCase::testPhpFlickrClass()
File
- tests/
flickrapi.test, line 30 - Unit Tests for flickrapi module http://drupal.org/node/265762
Class
- FlickrApiTestCase
- @file Unit Tests for flickrapi module http://drupal.org/node/265762
Code
function testPhpFlickrClass() {
$flickr = flickrapi_phpFlickr();
$this
->assertTrue($flickr);
$pandas = $flickr
->panda_getList();
// drupal_set_message(print_r($pandas, 1));
$this
->assertTrue(is_array($pandas));
foreach ($pandas['panda'] as $name) {
$photos = $flickr
->panda_getPhotos($name);
$this
->assertTrue(is_array($photos['photo']));
}
}