@@ 855-865 (lines=11) @@ | ||
852 | * @expectedException \InvalidArgumentException |
|
853 | * @expectedExceptionMessage EntityListenerServiceResolver |
|
854 | */ |
|
855 | public function testLazyEntityListenerResolverWithoutCorrectInterface() |
|
856 | { |
|
857 | $container = $this->getContainer([]); |
|
858 | $loader = new DoctrineExtension(); |
|
859 | $container->registerExtension($loader); |
|
860 | $container->addCompilerPass(new EntityListenerPass()); |
|
861 | ||
862 | $this->loadFromFile($container, 'orm_entity_listener_lazy_resolver_without_interface'); |
|
863 | ||
864 | $this->compileContainer($container); |
|
865 | } |
|
866 | ||
867 | public function testPrivateLazyEntityListener() |
|
868 | { |
|
@@ 885-895 (lines=11) @@ | ||
882 | * @expectedException \InvalidArgumentException |
|
883 | * @expectedExceptionMessageRegExp /The service ".*" must not be abstract as this entity listener is lazy-loaded/ |
|
884 | */ |
|
885 | public function testAbstractLazyEntityListener() |
|
886 | { |
|
887 | $container = $this->getContainer([]); |
|
888 | $loader = new DoctrineExtension(); |
|
889 | $container->registerExtension($loader); |
|
890 | $container->addCompilerPass(new EntityListenerPass()); |
|
891 | ||
892 | $this->loadFromFile($container, 'orm_entity_listener_lazy_abstract'); |
|
893 | ||
894 | $this->compileContainer($container); |
|
895 | } |
|
896 | ||
897 | public function testRepositoryFactory() |
|
898 | { |