|
@@ 977-987 (lines=11) @@
|
| 974 |
|
* @expectedException \InvalidArgumentException |
| 975 |
|
* @expectedExceptionMessage EntityListenerServiceResolver |
| 976 |
|
*/ |
| 977 |
|
public function testLazyEntityListenerResolverWithoutCorrectInterface() : void |
| 978 |
|
{ |
| 979 |
|
$container = $this->getContainer([]); |
| 980 |
|
$loader = new DoctrineExtension(); |
| 981 |
|
$container->registerExtension($loader); |
| 982 |
|
$container->addCompilerPass(new EntityListenerPass()); |
| 983 |
|
|
| 984 |
|
$this->loadFromFile($container, 'orm_entity_listener_lazy_resolver_without_interface'); |
| 985 |
|
|
| 986 |
|
$this->compileContainer($container); |
| 987 |
|
} |
| 988 |
|
|
| 989 |
|
public function testPrivateLazyEntityListener() : void |
| 990 |
|
{ |
|
@@ 1007-1017 (lines=11) @@
|
| 1004 |
|
* @expectedException \InvalidArgumentException |
| 1005 |
|
* @expectedExceptionMessageRegExp /The service ".*" must not be abstract\./ |
| 1006 |
|
*/ |
| 1007 |
|
public function testAbstractEntityListener() : void |
| 1008 |
|
{ |
| 1009 |
|
$container = $this->getContainer([]); |
| 1010 |
|
$loader = new DoctrineExtension(); |
| 1011 |
|
$container->registerExtension($loader); |
| 1012 |
|
$container->addCompilerPass(new EntityListenerPass()); |
| 1013 |
|
|
| 1014 |
|
$this->loadFromFile($container, 'orm_entity_listener_abstract'); |
| 1015 |
|
|
| 1016 |
|
$this->compileContainer($container); |
| 1017 |
|
} |
| 1018 |
|
|
| 1019 |
|
public function testRepositoryFactory() : void |
| 1020 |
|
{ |