コード例 #1
0
ファイル: RoleTest.php プロジェクト: bmartinezteltek/PuMuKIT2
 public function testNumberPeopleInMultimediaObject()
 {
     $role = new Role();
     $this->assertEquals(0, $role->getNumberPeopleInMultimediaObject());
     $role->increaseNumberPeopleInMultimediaObject();
     $this->assertEquals(1, $role->getNumberPeopleInMultimediaObject());
     $role->increaseNumberPeopleInMultimediaObject();
     $role->increaseNumberPeopleInMultimediaObject();
     $this->assertEquals(3, $role->getNumberPeopleInMultimediaObject());
     $role->decreaseNumberPeopleInMultimediaObject();
     $this->assertEquals(2, $role->getNumberPeopleInMultimediaObject());
     $role->setNumberPeopleInMultimediaObject(3);
     $this->assertEquals(3, $role->getNumberPeopleInMultimediaObject());
 }