コード例 #1
0
ファイル: TagTest.php プロジェクト: bmartinezteltek/PuMuKIT2
 public function testNumberMultimediaObjects()
 {
     $tag = new Tag();
     $this->assertEquals(0, $tag->getNumberMultimediaObjects());
     $tag->increaseNumberMultimediaObjects();
     $this->assertEquals(1, $tag->getNumberMultimediaObjects());
     $tag->increaseNumberMultimediaObjects();
     $this->assertEquals(2, $tag->getNumberMultimediaObjects());
     $tag->decreaseNumberMultimediaObjects();
     $this->assertEquals(1, $tag->getNumberMultimediaObjects());
     $tag->decreaseNumberMultimediaObjects();
     $this->assertEquals(0, $tag->getNumberMultimediaObjects());
     $count = 5;
     $tag->setNumberMultimediaObjects($count);
     $this->assertEquals(5, $tag->getNumberMultimediaObjects());
 }