コード例 #1
0
 /**
  * @dataProvider providerVersions
  */
 public function testInstallMethodShouldCreateAppropriateFileStructure($version)
 {
     // prepare
     Helper::emulateMagentoFileStructure($this->_magento, $version);
     $installer = new MagentoWithMockedRun($this->_target, $this->_magento, self::DB_HOSTNAME, self::DB_USERNAME, self::DB_PASSWORD, self::DB_NAME, 'url');
     // act
     $installer->install();
     // assert
     Helper::assertFileStructureIsCorrect($this->_target);
     Helper::assertRunParametersIsCorrect($this->_target, $this->_magento);
     Helper::assertCorrectIndexPhpFile($this->_target . '/index.php', $this->_magento);
 }