protected function setUp() { parent::setUp(); // Actual class is Symfony\Bundle\TwigBundle\Loader\FilesystemLoader but that is a subclass. // and the Twig_Loader_Filesystem doesn't require any additional services. $this->setDefinition('twig.loader.filesystem', new Definition('Twig_Loader_Filesystem')); }
protected function setUp() { parent::setUp(); $yaml = file_get_contents(FIXTURE_DIR . '/config.yml'); $parsed = Yaml::parse($yaml); $this->config = $parsed['annotated_cache']; }
protected function setUp() { parent::setUp(); $serviceId = sha1(rand()); $this->setDefinition($serviceId, new Definition('Doctrine\\Common\\Cache\\ArrayCache')); $this->load(['service' => $serviceId]); }
protected function compile() { $this->container->set('doctrine', $this->getMock('Doctrine\\Common\\Persistence\\ConnectionRegistry')); $this->container->addCompilerPass(new CheckTagCompilerPass()); $this->container->addCompilerPass(new CheckCollectionTagCompilerPass()); parent::compile(); }
public function setUp() { parent::setUp(); $this->container->setParameter('kernel.environment', 'test'); $this->container->set('sulu_core.webspace.webspace_manager', $this->getMock('Sulu\\Component\\Webspace\\Manager\\WebspaceManagerInterface')); $this->container->set('sulu.content.type_manager', $this->getMock('Sulu\\Component\\Content\\ContentTypeManagerInterface')); $this->container->set('logger', $this->getMock('Psr\\Log\\LoggerInterface')); }
protected function setUp() { parent::setUp(); $this->container->setParameter('kernel.root_dir', null); $this->container->setParameter('kernel.environment', 'test'); $this->container->setParameter('kernel.bundles', array()); $this->container->setParameter('kernel.debug', false); }
protected function setUp() { $this->extension = new EzPublishCoreExtension([new Parser\Page(), new Parser\BlockView()]); $this->extension->addDefaultSettings(__DIR__ . '/../../../bundle/Resources/config', ['default_settings.yml']); $this->extension->addConfigurationRegistrar(function (array $config, ContainerBuilder $container) { if (isset($config['ezpage']['layouts'])) { $container->setParameter('ezpublish.ezpage.layouts', $config['ezpage']['layouts'] + $container->getParameter('ezpublish.ezpage.layouts')); } if (isset($config['ezpage']['blocks'])) { $container->setParameter('ezpublish.ezpage.blocks', $config['ezpage']['blocks'] + $container->getParameter('ezpublish.ezpage.blocks')); } if (isset($config['ezpage']['enabledLayouts'])) { $container->setParameter('ezpublish.ezpage.enabledLayouts', $config['ezpage']['enabledLayouts'] + $container->getParameter('ezpublish.ezpage.enabledLayouts')); } if (isset($config['ezpage']['enabledBlocks'])) { $container->setParameter('ezpublish.ezpage.enabledBlocks', $config['ezpage']['enabledBlocks'] + $container->getParameter('ezpublish.ezpage.enabledBlocks')); } }); parent::setUp(); }
public function setUp() { parent::setUp(); $this->setParameter('kernel.bundles', array('Symfony\\Cmf\\Bundle\\RoutingAutoBundle\\Tests\\Resources\\Bundle\\TestBundle\\TestBundle')); }
/** * @inheritdoc */ protected function load(array $config = []) { parent::load(array_merge(['connections' => ['conn1' => ['host' => 'localhost']]], $config)); }
/** * {@inheritDoc} */ protected function setUp() { parent::setUp(); $this->load(array('ffmpeg_binary' => '/usr/local/bin/ffmpeg', 'ffprobe_binary' => '/usr/local/bin/ffprobe')); }
protected function setUp() { $this->extension = new EzPublishCoreExtension(); $this->siteaccessConfig = array('siteaccess' => array('default_siteaccess' => 'ezdemo_site', 'list' => array('ezdemo_site', 'eng', 'fre', 'ezdemo_site_admin'), 'groups' => array('ezdemo_group' => array('ezdemo_site', 'eng', 'fre', 'ezdemo_site_admin'), 'ezdemo_frontend_group' => array('ezdemo_site', 'eng', 'fre')), 'match' => array('URILElement' => 1, 'Map\\URI' => array('the_front' => 'ezdemo_site', 'the_back' => 'ezdemo_site_admin'))), 'system' => array('ezdemo_site' => array(), 'eng' => array(), 'fre' => array(), 'ezdemo_site_admin' => array())); parent::setUp(); }
/** * @param array $configurationValues */ protected function load(array $configurationValues = array()) { parent::load(array_merge_recursive($this->defaultConfig, $configurationValues)); }
protected function load( array $configurationValues = array() ) { parent::load( $configurationValues ); $this->configResolver->setContainer( $this->container ); }
public function setUp() { parent::setUp(); $this->container->setParameter('kernel.bundles', array()); $this->container->setParameter('kernel.cache_dir', sys_get_temp_dir()); }
public function setUp() { parent::setUp(); $this->setParameter('kernel.bundles', [BiteCodesFactrineBundle::class]); }
protected function setUp() { parent::setUp(); $this->setParameter('kernel.debug', true); }
protected function setUp() { $this->extension = new EzPublishSolrSearchEngineExtension(); parent::setUp(); }
/** * set up config */ protected function setUp() { parent::setUp(); $this->config = ['partner' => ['id' => 123456789, 'password' => '5gjhgjh983'], 'user' => ['id' => 'usertest', 'password' => '5gjhgjh983'], 'error_language' => 'de']; }
protected function setUp() { $this->extension = new EzSystemsEzPlatformSolrSearchEngineExtension(); parent::setUp(); }
protected function setUp() { parent::setUp(); $this->container->setParameter('kernel.bundles', array()); $this->container->setParameter('kernel.debug', false); }
protected function load(array $configurationValues = array()) { parent::load($configurationValues); $this->configResolver = $this->container->get('ezpublish.config.resolver.core'); }
/** * set up config */ protected function setUp() { parent::setUp(); $this->config = ['credentials' => ['scope' => 'testscope', 'client_email' => 'client email', 'private_key' => 'private key']]; }