/**
  * «ависимость от добавлени¤
  * @after testAdd
  */
 public function testUpdate()
 {
     $this->_injectDutyCollector();
     $this->assertNotEmpty($this->_iblockId);
     $this->assertNotEmpty($this->_propertyId);
     $this->assertNotEmpty($this->_sectionId);
     $arIblock = \CIBlock::GetArrayByID($this->_iblockId);
     $arIblock['NAME'] .= '2';
     $name = $arIblock['NAME'];
     $iblock = new \CIBlock();
     $updateResult = $iblock->Update($this->_iblockId, $arIblock);
     $this->assertTrue($updateResult, $this->errorMessage('error update result'));
     // дл¤ начала определ¤етс¤ просто как снимок
     $fixes = $this->_getCollectorFixes(UpdateProcess::className());
     $this->assertEquals(count($fixes), 1, $this->errorMessage('having one fixing updates'));
     $this->assertEquals($fixes[0]['data']['iblock']['NAME'], $name, $this->errorMessage('fixing name change'));
     // фиксаци¤ изменений
     Module::getInstance()->commitDutyChanges();
 }
 /**
  * @param $class
  * @return BaseProcess
  */
 public function getProcess($class)
 {
     switch ($class) {
         case AddProcess::className():
             return $this->_getProcessAdd();
             break;
         case UpdateProcess::className():
             return $this->_getProcessUpdate();
             break;
         case DeleteProcess::className():
             return $this->_getProcessDelete();
             break;
     }
 }