Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function setUp() |
||
31 | { |
||
32 | $entityManager = $this->getMockBuilder(EntityManager::class)->disableOriginalConstructor()->getMock(); |
||
33 | $entityManager->expects(self::once())->method('persist'); |
||
34 | $entityManager->expects(self::once())->method('flush'); |
||
35 | |||
36 | $this->repository = new DeviceRepository($entityManager, new ClassMetadata('DeviceEntity')); |
||
37 | } |
||
38 | |||
44 |