123456789101112131415161718192021222324252627282930313233 |
- <?php
- /*
- * This file is part of the Sonata Project package.
- *
- * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Sonata\AdminBundle\Tests\DependencyInjection;
- use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
- use Sonata\AdminBundle\DependencyInjection\SonataAdminExtension;
- class SonataAdminExtensionTest extends AbstractExtensionTestCase
- {
- public function testLoadsExporterServiceDefinitionWhenExporterBundleIsRegistered()
- {
- $this->container->setParameter('kernel.bundles', array('SonataExporterBundle' => 'whatever'));
- $this->load();
- $this->assertContainerBuilderHasService(
- 'sonata.admin.admin_exporter',
- 'Sonata\AdminBundle\Bridge\Exporter\AdminExporter'
- );
- }
- protected function getContainerExtensions()
- {
- return array(new SonataAdminExtension());
- }
- }
|