getApplication() public method

public getApplication ( ) : Application | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject
return N98\Magento\Application | PHPUnit_Framework_MockObject_MockObjec\PHPUnit_Framework_MockObject_MockObject
Exemplo n.º 1
0
 /**
  * @throws \RuntimeException
  * @return \PHPUnit_Framework_MockObject_MockObject|\N98\Magento\Application
  */
 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;
 }