| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | protected function setUp(): void |
||
| 19 | { |
||
| 20 | parent::setUp(); |
||
| 21 | |||
| 22 | $this->_schemaTool->createSchema( |
||
| 23 | [ |
||
| 24 | $this->_em->getClassMetadata(GH6884Person::class) |
||
| 25 | ] |
||
| 26 | ); |
||
| 27 | |||
| 28 | $listener = $this->createPartialMock(stdClass::class, ['preUpdate']); |
||
| 29 | |||
| 30 | $listener->expects($this->exactly(3))->method('preUpdate'); |
||
| 31 | |||
| 32 | $this->_em->getEventManager()->addEventListener([Events::preUpdate], $listener); |
||
| 33 | |||
| 34 | $this->_em->getClassMetadata(GH6884Person::class) |
||
| 35 | ->addEntityListener(Events::postUpdate, GH6884Person::class, 'onPostUpdate'); |
||
| 36 | } |
||
| 75 |