protected function setUp()
 {
     parent::setUp();
     $this->fixturesPath = PATH_typo3conf . 'ext/extension_builder/Tests/Fixtures/ClassParser/';
     vfsStream::setup('tmpDir');
     $this->tmpDir = vfsStream::url('tmpDir') . '/';
 }
 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_v3/';
     $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')));
 }
Example #3
0
 public function setUp()
 {
     parent::setUp();
     $this->extensionSchemaBuilder = $this->getMock($this->buildAccessibleProxy('\\EBT\\ExtensionBuilder\\Service\\ExtensionSchemaBuilder'), array('dummy'));
 }
 protected function setUp()
 {
     parent::setUp();
     $this->generateInitialModelClassFile($this->modelName);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->fixturesPath = PATH_typo3conf . 'ext/extension_builder/Tests/Fixtures/ClassParser/';
 }
 public function setUp()
 {
     parent::setUp();
     $this->objectSchemaBuilder = $this->objectManager->get('EBT\\ExtensionBuilder\\Service\\ObjectSchemaBuilder');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->fixturesPath .= 'ClassParser/';
 }