public function getApplication()
{
$application = parent::getApplication();
if ($application::MAGENTO_MAJOR_VERSION_1 !== $application->getMagentoMajorVersion()) {
return $application;
}
// FIXME #613 make install command work with 1.9+ and cache initialization
$version = \Mage::getVersion();
$against = '1.9.0.0';
if ($application->isMagentoEnterprise()) {
$against = '1.14.0.0';
}
if (-1 != version_compare($version, $against)) {
$this->markTestSkipped(sprintf('Test skipped because it fails after new install of a Magento 1.9+ version (Magento version is: ' . '%s) which is the case on travis where we always have a new install.', $version));
}
return $application;
}