Esempio n. 1
0
 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());
 }