@@ 90-101 (lines=12) @@ | ||
87 | $this->assertSame('config', (string) $def->getArgument(2)); |
|
88 | } |
|
89 | ||
90 | public function testDefaultPersister() |
|
91 | { |
|
92 | $c = new ContainerBuilder; |
|
93 | $this->e->load([], $c); |
|
94 | $def = $c->getDefinition('innmind_neo4j.unit_of_work'); |
|
95 | ||
96 | $this->assertInstanceOf(Reference::class, $def->getArgument(5)); |
|
97 | $this->assertSame( |
|
98 | 'innmind_neo4j.persister.delegation', |
|
99 | (string) $def->getArgument(5) |
|
100 | ); |
|
101 | } |
|
102 | ||
103 | public function testDefaultConnection() |
|
104 | { |
|
@@ 134-142 (lines=9) @@ | ||
131 | $this->assertSame(0, count($calls)); |
|
132 | } |
|
133 | ||
134 | public function testDefaultMetadataConfiguration() |
|
135 | { |
|
136 | $c = new ContainerBuilder; |
|
137 | $this->e->load([], $c); |
|
138 | $def = $c->getDefinition('innmind_neo4j.metadata_builder'); |
|
139 | ||
140 | $this->assertInstanceOf(Reference::class, $def->getArgument(2)); |
|
141 | $this->assertSame('innmind_neo4j.metadata_builder.configuration', (string) $def->getArgument(2)); |
|
142 | } |
|
143 | } |
|
144 |