Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php declare(strict_types=1); |
||
25 | public function testCountAll() : void |
||
26 | { |
||
27 | $container = $this->getContainer(); |
||
28 | $doctrine = $container->get('doctrine'); |
||
29 | |||
30 | $entityManager = $doctrine->getManager('slave'); |
||
31 | $this->createDatabaseSchema($entityManager); |
||
32 | |||
33 | $entryManager = $container->get('entryManager'); |
||
34 | $this->assertSame(0, $entryManager->countAll()); |
||
35 | |||
36 | $entryManager->create(['name' => 'foo', 'slug' => 'foo']); |
||
37 | $this->assertSame(1, $entryManager->countAll()); |
||
38 | } |
||
59 |