| 1 | <?php |
||
| 17 | class SonataAdminExtensionTest extends AbstractExtensionTestCase |
||
| 18 | { |
||
| 19 | public function testHasServiceDefinitionForLockExtension() |
||
| 20 | { |
||
| 21 | $this->container->setParameter('kernel.bundles', array()); |
||
| 22 | $this->load(array('options' => array('lock_protection' => true))); |
||
| 23 | $this->assertContainerBuilderHasService('sonata.admin.lock.extension'); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function testNotHasServiceDefinitionForLockExtension() |
||
| 27 | { |
||
| 28 | $this->container->setParameter('kernel.bundles', array()); |
||
| 29 | $this->load(array('options' => array('lock_protection' => false))); |
||
| 30 | $this->assertContainerBuilderNotHasService('sonata.admin.lock.extension'); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function testLoadsExporterServiceDefinitionWhenExporterBundleIsRegistered() |
||
| 42 | |||
| 43 | protected function getContainerExtensions() |
||
| 47 | } |
||
| 48 |