| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function thereAreAddressesLocatedAtCity($count, $city) |
||
| 22 | { |
||
| 23 | $manager = $this->getEntityManager(); |
||
| 24 | $factory = $this->getExampleFactory('address'); |
||
| 25 | |||
| 26 | for ($i=0 ; $i<$count ; $i++) { |
||
| 27 | $address = $factory->create(['city' => $city]); |
||
| 28 | |||
| 29 | $manager->persist($address); |
||
| 30 | } |
||
| 31 | |||
| 32 | $manager->flush(); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |