public function setUp()
 {
     parent::setUp();
     $this->objectSchemaBuilder = $this->getAccessibleMock(\EBT\ExtensionBuilder\Service\ObjectSchemaBuilder::class, array('dummy'));
     $concreteConfigurationManager = $this->getAccessibleMock(\TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager::class);
     $typoScriptService = new \TYPO3\CMS\Extbase\Service\TypoScriptService();
     $concreteConfigurationManager->_set('typoScriptService', $typoScriptService);
     $this->configurationManager = $this->getAccessibleMock(\EBT\ExtensionBuilder\Configuration\ConfigurationManager::class, array('getExtbaseClassConfiguration'));
     $this->configurationManager->_set('concreteConfigurationManager', $concreteConfigurationManager);
     $this->objectSchemaBuilder->injectConfigurationManager($this->configurationManager);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->extension = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\EBT\ExtensionBuilder\Domain\Model\Extension::class);
     $this->persons[] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\EBT\ExtensionBuilder\Domain\Model\Person::class);
     $this->persons[] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\EBT\ExtensionBuilder\Domain\Model\Person::class);
     $this->persons[] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\EBT\ExtensionBuilder\Domain\Model\Person::class);
     $this->persons[0]->setName('0');
     $this->persons[1]->setName('1');
     $this->persons[2]->setName('2');
 }
Exemple #3
0
 public function setUp()
 {
     parent::setUp();
     $this->fixturesPath = PATH_typo3conf . 'ext/extension_builder/Tests/Fixtures/ClassParser/';
     vfsStream::setup('tmpDir');
     $this->tmpDir = vfsStream::url('tmpDir') . '/';
     $this->printerService = $this->getAccessibleMock(\EBT\ExtensionBuilder\Service\Printer::class, array('dummy'));
     $nodeFactory = new \EBT\ExtensionBuilder\Parser\NodeFactory();
     $this->printerService->_set('nodeFactory', $nodeFactory);
     $this->parserService = new \EBT\ExtensionBuilder\Service\Parser(new \PhpParser\Lexer());
 }
 protected function setUp()
 {
     parent::setUp();
     $this->extension = $this->getMock(\EBT\ExtensionBuilder\Domain\Model\Extension::class, array('getOverWriteSettings'));
     $this->extensionSchemaBuilder = $this->getAccessibleMock(\EBT\ExtensionBuilder\Service\ExtensionSchemaBuilder::class, array('dummy'));
     $this->extensionSchemaBuilder->injectConfigurationManager(new \EBT\ExtensionBuilder\Configuration\ConfigurationManager());
     /** @var $objectSchemaBuilder \EBT\ExtensionBuilder\Service\ObjectSchemaBuilder */
     $objectSchemaBuilder = $this->getAccessibleMock(\EBT\ExtensionBuilder\Service\ObjectSchemaBuilder::class, array('dummy'));
     $objectSchemaBuilder->injectConfigurationManager(new \EBT\ExtensionBuilder\Configuration\ConfigurationManager());
     $this->extensionSchemaBuilder->injectObjectSchemaBuilder($objectSchemaBuilder);
     $this->extensionKey = 'dummy';
 }
 protected function setUp()
 {
     parent::setUp();
     $this->classBuilder = $this->getAccessibleMock(\EBT\ExtensionBuilder\Service\ClassBuilder::class, array('dummy'));
     $parserService = new \EBT\ExtensionBuilder\Service\Parser(new \PhpParser\Lexer());
     $printerService = $this->getAccessibleMock(\EBT\ExtensionBuilder\Service\Printer::class, array('dummy'));
     $nodeFactory = new \EBT\ExtensionBuilder\Parser\NodeFactory();
     $printerService->_set('nodeFactory', $nodeFactory);
     $configurationManager = new \EBT\ExtensionBuilder\Configuration\ConfigurationManager();
     $this->classBuilder->_set('parserService', $parserService);
     $this->classBuilder->_set('printerService', $printerService);
     $this->classBuilder->_set('configurationManager', $configurationManager);
     $this->classBuilder->initialize($this->extension);
 }
Exemple #6
0
 public function setUp()
 {
     parent::setUp();
     $this->parserService = new \EBT\ExtensionBuilder\Service\Parser(new \PhpParser\Lexer());
 }
 public function setUp()
 {
     parent::setUp();
     $this->fixturesPath = PATH_typo3conf . 'ext/extension_builder/Tests/Fixtures/ClassParser/';
     $this->parserService = new \EBT\ExtensionBuilder\Service\Parser(new \PhpParser\Lexer());
 }
Exemple #8
0
 public function setUp()
 {
     parent::setUp();
     $this->person = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\EBT\ExtensionBuilder\Domain\Model\Person::class);
 }