N98\Magento\Command\LocalConfig\GenerateCommandTest::setUp PHP Метод

setUp() публичный Метод

public setUp ( )
    public function setUp()
    {
        $this->configFile = sprintf('%s/%s/local.xml', sys_get_temp_dir(), $this->getName());
        mkdir(dirname($this->configFile), 0777, true);
        $commandMock = $this->getMock('\\N98\\Magento\\Command\\LocalConfig\\GenerateCommand', array('_getLocalConfigFilename'));
        $commandMock->expects($this->any())->method('_getLocalConfigFilename')->will($this->returnValue($this->configFile));
        $this->getApplication()->add($commandMock);
        copy(sprintf('%s/app/etc/local.xml.template', $this->getTestMagentoRoot()), sprintf('%s/local.xml.template', dirname($this->configFile)));
    }