Example #1
0
 public function updatePopularityCount()
 {
     $imageService = new ImageService();
     $images = $imageService->getImagesByTag($this->name);
     $this->popularity_count = count($images);
     $this->save();
 }
 /**
  * @expectedException \TigerKit\TigerException
  * @expectedExceptionMessage No such tag 'bogus'.
  */
 public function testGetImagesByInvalidTag()
 {
     $this->imageService->getImagesByTag("bogus");
 }