|
@@ 958-968 (lines=11) @@
|
| 955 |
|
* @expectedException \InvalidArgumentException |
| 956 |
|
* @expectedExceptionMessage EntityListenerServiceResolver |
| 957 |
|
*/ |
| 958 |
|
public function testLazyEntityListenerResolverWithoutCorrectInterface() |
| 959 |
|
{ |
| 960 |
|
$container = $this->getContainer([]); |
| 961 |
|
$loader = new DoctrineExtension(); |
| 962 |
|
$container->registerExtension($loader); |
| 963 |
|
$container->addCompilerPass(new EntityListenerPass()); |
| 964 |
|
|
| 965 |
|
$this->loadFromFile($container, 'orm_entity_listener_lazy_resolver_without_interface'); |
| 966 |
|
|
| 967 |
|
$this->compileContainer($container); |
| 968 |
|
} |
| 969 |
|
|
| 970 |
|
public function testPrivateLazyEntityListener() |
| 971 |
|
{ |
|
@@ 988-998 (lines=11) @@
|
| 985 |
|
* @expectedException \InvalidArgumentException |
| 986 |
|
* @expectedExceptionMessageRegExp /The service ".*" must not be abstract as this entity listener is lazy-loaded/ |
| 987 |
|
*/ |
| 988 |
|
public function testAbstractLazyEntityListener() |
| 989 |
|
{ |
| 990 |
|
$container = $this->getContainer([]); |
| 991 |
|
$loader = new DoctrineExtension(); |
| 992 |
|
$container->registerExtension($loader); |
| 993 |
|
$container->addCompilerPass(new EntityListenerPass()); |
| 994 |
|
|
| 995 |
|
$this->loadFromFile($container, 'orm_entity_listener_lazy_abstract'); |
| 996 |
|
|
| 997 |
|
$this->compileContainer($container); |
| 998 |
|
} |
| 999 |
|
|
| 1000 |
|
public function testRepositoryFactory() |
| 1001 |
|
{ |