| @@ 142-152 (lines=11) @@ | ||
| 139 | $this->em->flush(); |
|
| 140 | } |
|
| 141 | ||
| 142 | public function testMockedNonIndexablePersist() { |
|
| 143 | $this->registerSearchService(0, 0); |
|
| 144 | $potato = new Potato(); |
|
| 145 | $potato->setTitle('Lisa'); |
|
| 146 | $this->em->persist($potato); |
|
| 147 | $this->em->flush(); |
|
| 148 | ||
| 149 | $potato->setTitle('Erna'); |
|
| 150 | $this->em->persist($potato); |
|
| 151 | $this->em->flush(); |
|
| 152 | } |
|
| 153 | ||
| 154 | public function testMockedNonIndexableUpdate() { |
|
| 155 | $this->registerSearchService(0, 0); |
|
| @@ 162-171 (lines=10) @@ | ||
| 159 | $this->em->flush(); |
|
| 160 | } |
|
| 161 | ||
| 162 | public function testMockedNonIndexableDelete() { |
|
| 163 | $this->registerSearchService(0, 0); |
|
| 164 | $potato = new Potato(); |
|
| 165 | $potato->setTitle('Lisa'); |
|
| 166 | $this->em->persist($potato); |
|
| 167 | $this->em->flush(); |
|
| 168 | ||
| 169 | $this->em->remove($potato); |
|
| 170 | $this->em->flush(); |
|
| 171 | } |
|
| 172 | ||
| 173 | protected function getUsedEntityFixtures() { |
|
| 174 | return array( |
|