@@ 246-257 (lines=12) @@ | ||
243 | /** |
|
244 | * @expectedException \InvalidArgumentException |
|
245 | */ |
|
246 | public function testFailureWhenMissingIndexDoesntDispatch() |
|
247 | { |
|
248 | $this->configManager->expects($this->once()) |
|
249 | ->method('getIndexConfiguration') |
|
250 | ->with('nonExistant') |
|
251 | ->will($this->throwException(new \InvalidArgumentException)); |
|
252 | ||
253 | $this->indexManager->expects($this->never()) |
|
254 | ->method('getIndex'); |
|
255 | ||
256 | $this->resetter->resetIndex('nonExistant'); |
|
257 | } |
|
258 | ||
259 | public function testResetType() |
|
260 | { |
|
@@ 312-323 (lines=12) @@ | ||
309 | /** |
|
310 | * @expectedException \InvalidArgumentException |
|
311 | */ |
|
312 | public function testNonExistantResetType() |
|
313 | { |
|
314 | $this->configManager->expects($this->once()) |
|
315 | ->method('getTypeConfiguration') |
|
316 | ->with('index', 'nonExistant') |
|
317 | ->will($this->throwException(new \InvalidArgumentException)); |
|
318 | ||
319 | $this->indexManager->expects($this->never()) |
|
320 | ->method('getIndex'); |
|
321 | ||
322 | $this->resetter->resetIndexType('index', 'nonExistant'); |
|
323 | } |
|
324 | ||
325 | public function testPostPopulateWithoutAlias() |
|
326 | { |