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