public function setUp() { parent::setUp(); $this->configurationManager = $this->getAccessibleMock('EBT\\ExtensionBuilder\\Configuration\\ConfigurationManager', array('dummy')); $this->extensionSchemaBuilder = $this->objectManager->get('EBT\\ExtensionBuilder\\Service\\ExtensionSchemaBuilder'); $testExtensionDir = $this->fixturesPath . 'TestExtensions/test_extension/'; $jsonFile = $testExtensionDir . \EBT\ExtensionBuilder\Configuration\ConfigurationManager::EXTENSION_BUILDER_SETTINGS_FILE; if (file_exists($jsonFile)) { // compatibility adaptions for configurations from older versions $extensionConfigurationJSON = json_decode(file_get_contents($jsonFile), TRUE); $extensionConfigurationJSON = $this->configurationManager->fixExtensionBuilderJSON($extensionConfigurationJSON, FALSE); } else { $extensionConfigurationJSON = array(); $this->fail('JSON file not found: ' . $jsonFile); } $this->fixtureExtension = $this->extensionSchemaBuilder->build($extensionConfigurationJSON); $this->fixtureExtension->setExtensionDir($testExtensionDir); $this->roundTripService->_set('extension', $this->fixtureExtension); $this->roundTripService->_set('previousExtensionDirectory', $testExtensionDir); $this->roundTripService->_set('extensionDirectory', $testExtensionDir); $this->roundTripService->_set('previousDomainObjects', array($this->fixtureExtension->getDomainObjectByName('Main')->getUniqueIdentifier() => $this->fixtureExtension->getDomainObjectByName('Main'))); $this->fileGenerator->setSettings(array('codeTemplateRootPath' => PATH_typo3conf . 'ext/extension_builder/Resources/Private/CodeTemplates/Extbase/', 'extConf' => array('enableRoundtrip' => '1'))); }