@@ 139-150 (lines=12) @@ | ||
136 | /** |
|
137 | * @expectedException \InvalidArgumentException |
|
138 | */ |
|
139 | public function testFailureWhenMissingIndexDoesntDispatch() |
|
140 | { |
|
141 | $this->configManager->expects($this->once()) |
|
142 | ->method('getIndexConfiguration') |
|
143 | ->with('nonExistant') |
|
144 | ->will($this->throwException(new \InvalidArgumentException())); |
|
145 | ||
146 | $this->indexManager->expects($this->never()) |
|
147 | ->method('getIndex'); |
|
148 | ||
149 | $this->resetter->resetIndex('nonExistant'); |
|
150 | } |
|
151 | ||
152 | public function testResetType() |
|
153 | { |
|
@@ 196-207 (lines=12) @@ | ||
193 | /** |
|
194 | * @expectedException \InvalidArgumentException |
|
195 | */ |
|
196 | public function testNonExistantResetType() |
|
197 | { |
|
198 | $this->configManager->expects($this->once()) |
|
199 | ->method('getTypeConfiguration') |
|
200 | ->with('index', 'nonExistant') |
|
201 | ->will($this->throwException(new \InvalidArgumentException())); |
|
202 | ||
203 | $this->indexManager->expects($this->never()) |
|
204 | ->method('getIndex'); |
|
205 | ||
206 | $this->resetter->resetIndexType('index', 'nonExistant'); |
|
207 | } |
|
208 | ||
209 | public function testPostPopulateWithoutAlias() |
|
210 | { |