public function TagadelicCloudTest::testfrom_cache in Tagadelic 7.2
@covers tagadeliccloud::from_cache
File
- tests/
TagadelicCloudTest.php, line 106
Class
- TagadelicCloudTest
- Generated by PHPUnit_SkeletonGenerator on 2012-05-16 at 15:23:33.
Code
public function testfrom_cache() {
$drupal = $this
->getMock("TagadelicDrupalWrapper", array(
"cache_get",
));
$drupal
->expects($this
->once())
->method("cache_get")
->with("tagadelic_cloud_1337")
->will($this
->returnvalue($this->object));
$cloud = TagadelicCloud::from_cache(1337, $drupal);
$this
->assertinstanceof("TagadelicCloud", $cloud);
}