@@ 907-917 (lines=11) @@ | ||
904 | * @expectedException \InvalidArgumentException |
|
905 | * @expectedExceptionMessage EntityListenerServiceResolver |
|
906 | */ |
|
907 | public function testLazyEntityListenerResolverWithoutCorrectInterface() |
|
908 | { |
|
909 | $container = $this->getContainer([]); |
|
910 | $loader = new DoctrineExtension(); |
|
911 | $container->registerExtension($loader); |
|
912 | $container->addCompilerPass(new EntityListenerPass()); |
|
913 | ||
914 | $this->loadFromFile($container, 'orm_entity_listener_lazy_resolver_without_interface'); |
|
915 | ||
916 | $this->compileContainer($container); |
|
917 | } |
|
918 | ||
919 | public function testPrivateLazyEntityListener() |
|
920 | { |
|
@@ 937-947 (lines=11) @@ | ||
934 | * @expectedException \InvalidArgumentException |
|
935 | * @expectedExceptionMessageRegExp /The service ".*" must not be abstract as this entity listener is lazy-loaded/ |
|
936 | */ |
|
937 | public function testAbstractLazyEntityListener() |
|
938 | { |
|
939 | $container = $this->getContainer([]); |
|
940 | $loader = new DoctrineExtension(); |
|
941 | $container->registerExtension($loader); |
|
942 | $container->addCompilerPass(new EntityListenerPass()); |
|
943 | ||
944 | $this->loadFromFile($container, 'orm_entity_listener_lazy_abstract'); |
|
945 | ||
946 | $this->compileContainer($container); |
|
947 | } |
|
948 | ||
949 | public function testRepositoryFactory() |
|
950 | { |