作者:ezsystem
项目:ezpublish-kerne
protected function setUp()
{
parent::setUp();
$this->setDefinition('security.authentication.provider.dao', new Definition());
$this->setDefinition('security.authentication.provider.anonymous', new Definition());
$this->setDefinition('security.http_utils', new Definition());
$this->setDefinition('security.authentication.success_handler', new Definition());
}
作者:dfritsch
项目:ezpublish-kerne
public function setUp()
{
parent::setUp();
$this->container->setParameter('ez_io.metadata_handlers', array());
$this->container->setParameter('ez_io.binarydata_handlers', array());
$this->container->setDefinition('ezpublish.core.io.binarydata_handler.factory', new Definition());
$this->container->setDefinition('ezpublish.core.io.metadata_handler.factory', new Definition());
}
作者:nunojsferreir
项目:CLSlackBundl
protected function setUp()
{
parent::setUp();
$this->apiClientClass = 'CL\\Slack\\Transport\\ApiClient';
$this->mockApiClientClass = 'CL\\Slack\\Test\\Transport\\MockApiClient';
$this->setDefinition(self::API_CLIENT_ID, new Definition($this->apiClientClass));
$this->setDefinition(self::MOCK_API_CLIENT_ID, new Definition($this->mockApiClientClass));
}
作者:damonsso
项目:SeoBundl
protected function setUp()
{
parent::setUp();
$this->container->setParameter('cmf_seo.sitemap.configurations', array());
$nonProviderService = new Definition();
$this->setDefinition('some_service', $nonProviderService);
foreach ($this->tagProvider() as $service) {
$chain = new Definition();
$this->setDefinition('cmf_seo.sitemap.' . $service[1], $chain);
}
}
作者:Pix
项目:ezpublish-kerne
protected function setUp()
{
parent::setUp();
$this->setDefinition('ezpublish_debug.data_collector', new Definition());
}
作者:Pix
项目:ezpublish-kerne
protected function setUp()
{
parent::setUp();
$this->setDefinition('ezpublish.api.storage_engine.factory', new Definition());
$this->container->setParameter('ezpublish.api.storage_engine.default', 'default_storage_engine');
}
作者:runopencod
项目:traitor-bundl
public function setUp()
{
parent::setUp();
require_once __DIR__ . '/mocks.php';
}
作者:ssto
项目:rollerworks-datagrid-bundl
protected function setUp()
{
parent::setUp();
$this->container->registerExtension(new DatagridExtension());
$this->container->loadFromExtension('rollerworks_datagrid');
}