| @@ 117-128 (lines=12) @@ | ||
| 114 | /** |
|
| 115 | * @expectedException \InvalidArgumentException |
|
| 116 | */ |
|
| 117 | public function testFailureWhenMissingIndexDoesntDispatch() |
|
| 118 | { |
|
| 119 | $this->configManager->expects($this->once()) |
|
| 120 | ->method('getIndexConfiguration') |
|
| 121 | ->with('nonExistant') |
|
| 122 | ->will($this->throwException(new \InvalidArgumentException())); |
|
| 123 | ||
| 124 | $this->indexManager->expects($this->never()) |
|
| 125 | ->method('getIndex'); |
|
| 126 | ||
| 127 | $this->resetter->resetIndex('nonExistant'); |
|
| 128 | } |
|
| 129 | ||
| 130 | public function testResetType() |
|
| 131 | { |
|
| @@ 174-185 (lines=12) @@ | ||
| 171 | /** |
|
| 172 | * @expectedException \InvalidArgumentException |
|
| 173 | */ |
|
| 174 | public function testNonExistantResetType() |
|
| 175 | { |
|
| 176 | $this->configManager->expects($this->once()) |
|
| 177 | ->method('getTypeConfiguration') |
|
| 178 | ->with('index', 'nonExistant') |
|
| 179 | ->will($this->throwException(new \InvalidArgumentException())); |
|
| 180 | ||
| 181 | $this->indexManager->expects($this->never()) |
|
| 182 | ->method('getIndex'); |
|
| 183 | ||
| 184 | $this->resetter->resetIndexType('index', 'nonExistant'); |
|
| 185 | } |
|
| 186 | ||
| 187 | public function testPostPopulateWithoutAlias() |
|
| 188 | { |
|