コード例 #1
0
ファイル: Tag.php プロジェクト: WolfGangS/TigerKit
 public function updatePopularityCount()
 {
     $imageService = new ImageService();
     $images = $imageService->getImagesByTag($this->name);
     $this->popularity_count = count($images);
     $this->save();
 }
コード例 #2
0
 /**
  * @expectedException \TigerKit\TigerException
  * @expectedExceptionMessage No such tag 'bogus'.
  */
 public function testGetImagesByInvalidTag()
 {
     $this->imageService->getImagesByTag("bogus");
 }