Exemple #1
0
 public function setup()
 {
     $this->_runner->getUtilHelper()->softUnlink($this->getIntegrationPath() . '/.kmig.phpmig.data');
     if (parent::setup() && KmsCi_Kmig_IntegrationHelper::getInstance($this)->setup()) {
         return true;
     } else {
         return false;
     }
 }
Exemple #2
0
 public function testDummy()
 {
     $kmigHelper = KmsCi_Kmig_IntegrationHelper::getInstance($this);
     $mEntry = $kmigHelper->getMigrator()->entry->get('test123');
     $kEntry = $kmigHelper->getClient()->baseEntry->get($mEntry->id);
     if ($mEntry->name == 'test123' && $kEntry->name == 'test123') {
         echo "OK\n";
         return true;
     } else {
         echo "FAILED\n";
         return false;
     }
 }
 /**
  * @param $integration
  * @return KmsCi_Kmig_IntegrationHelper
  */
 protected function _getIntegrationHelper($integration)
 {
     return KmsCi_Kmig_IntegrationHelper::getInstance($integration);
 }
 public static function getInstanceByIntegrationId($integId)
 {
     $runner = KmsCi_Bootstrap::getRunner();
     $className = KmsCi_Runner_IntegrationTests::getIntegrationClassById($integId, $runner);
     $integration = new $className($runner, $integId);
     return KmsCi_Kmig_IntegrationHelper::getInstance($integration);
 }