public function testBulkUpgradeTariffPlanLifeCycle()
 {
     $this->_template->importData(Zend_Json::decode(self::LIFE_CYCLE_TARIFF));
     $this->_template->id = null;
     $this->_mapper->insert($this->_template);
     App_MigrationTool_TemplatesTo24_LifeCycleTariffUtils::performUpgrade();
     $template = $this->_mapper->findOneById($this->_template->id);
     $this->assertInstanceOf('Application\\Model\\TemplateModel', $template);
     $tariff = new TariffPlanLifeCycleModel($template->exportData());
     $this->assertInstanceOf('Application\\Model\\TariffPlanLifeCycleModel', $tariff);
     $status = $tariff->findStatus(LifeCycleModel::STATUS_ACTIVATION_READY);
     $this->assertInstanceOf('Application\\Model\\TariffPlan\\StatusCostModel', $status);
     $this->assertEquals(0, $status->cost);
     $status = $tariff->findStatus(LifeCycleModel::STATUS_ACTIVATION_PENDANT);
     $this->assertInstanceOf('Application\\Model\\TariffPlan\\StatusCostModel', $status);
     $this->assertEquals(0, $status->cost);
     $validator = new TariffPlanLifeCycleValidate();
     $this->assertTrue($validator->isValid($tariff), var_export($validator->getMessages(), 1));
 }
<?php

echo "Upgrading life cycle tariff plan templates...";
App_MigrationTool_TemplatesTo24_LifeCycleTariffUtils::performUpgrade();
echo "Life cycle tariff plan templates upgraded.";