Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testAssociationLoadAfterClear() |
||
16 | { |
||
17 | $this->loadFixturesCountries(); |
||
18 | $this->loadFixturesStates(); |
||
19 | $this->loadFixturesCities(); |
||
20 | $this->loadFixturesAttractions(); |
||
21 | |||
22 | $cityId = $this->cities[0]->getId(); |
||
23 | |||
24 | $this->_em->clear(); |
||
25 | |||
26 | /** @var City $city */ |
||
27 | $city = $this->_em->find(City::class, $cityId); |
||
28 | |||
29 | $this->_em->clear(); |
||
30 | |||
31 | $this->assertNotEmpty($city->getAttractions()->toArray()); |
||
32 | } |
||
35 |