Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function testGetAllToInvoice(): void |
||
25 | { |
||
26 | $user = _em()->getRepository(User::class)->getByLogin('administrator'); |
||
27 | User::setCurrent($user); |
||
28 | |||
29 | $bookings = $this->repository->getAllToInvoice(); |
||
30 | $actual = []; |
||
31 | foreach ($bookings as $a) { |
||
32 | $actual[] = $a->getId(); |
||
33 | } |
||
34 | |||
35 | $expected = [ |
||
36 | 4004, |
||
37 | 4003, |
||
38 | 4005, |
||
39 | 4006, |
||
40 | ]; |
||
41 | |||
42 | self::assertSame($expected, $actual); |
||
43 | } |
||
45 |