@@ 52-66 (lines=15) @@ | ||
49 | * @expectedException Innmind\Neo4jBundle\Exception\RuntimeException |
|
50 | * @expectedExceptionMessage The class attribute must be defined |
|
51 | */ |
|
52 | public function testThrowWhenNoClassForGenerator() |
|
53 | { |
|
54 | $c = new ContainerBuilder; |
|
55 | (new InnmindNeo4jExtension)->load([], $c); |
|
56 | $c->setDefinition( |
|
57 | 'foo', |
|
58 | (new Definition) |
|
59 | ->addTag('innmind_neo4j.identity.generator') |
|
60 | ); |
|
61 | (new RegistrableServicePass( |
|
62 | 'innmind_neo4j.generators', |
|
63 | 'innmind_neo4j.identity.generator' |
|
64 | )) |
|
65 | ->process($c); |
|
66 | } |
|
67 | ||
68 | public function testProcessRepositoryFactoryConfigurator() |
|
69 | { |
|
@@ 101-115 (lines=15) @@ | ||
98 | * @expectedException Innmind\Neo4jBundle\Exception\RuntimeException |
|
99 | * @expectedExceptionMessage The class attribute must be defined |
|
100 | */ |
|
101 | public function testThrowWhenNoClassForRepository() |
|
102 | { |
|
103 | $c = new ContainerBuilder; |
|
104 | (new InnmindNeo4jExtension)->load([], $c); |
|
105 | $c->setDefinition( |
|
106 | 'foo', |
|
107 | (new Definition) |
|
108 | ->addTag('innmind_neo4j.repository') |
|
109 | ); |
|
110 | (new RegistrableServicePass( |
|
111 | 'innmind_neo4j.repository_factory.configurator', |
|
112 | 'innmind_neo4j.repository' |
|
113 | )) |
|
114 | ->process($c); |
|
115 | } |
|
116 | } |
|
117 |