@@ 127-138 (lines=12) @@ | ||
124 | /** |
|
125 | * @expectedException \InvalidArgumentException |
|
126 | */ |
|
127 | public function testFailureWhenMissingIndexDoesntDispatch() |
|
128 | { |
|
129 | $this->configManager->expects($this->once()) |
|
130 | ->method('getIndexConfiguration') |
|
131 | ->with('nonExistant') |
|
132 | ->will($this->throwException(new \InvalidArgumentException)); |
|
133 | ||
134 | $this->indexManager->expects($this->never()) |
|
135 | ->method('getIndex'); |
|
136 | ||
137 | $this->resetter->resetIndex('nonExistant'); |
|
138 | } |
|
139 | ||
140 | public function testResetType() |
|
141 | { |
|
@@ 193-204 (lines=12) @@ | ||
190 | /** |
|
191 | * @expectedException \InvalidArgumentException |
|
192 | */ |
|
193 | public function testNonExistantResetType() |
|
194 | { |
|
195 | $this->configManager->expects($this->once()) |
|
196 | ->method('getTypeConfiguration') |
|
197 | ->with('index', 'nonExistant') |
|
198 | ->will($this->throwException(new \InvalidArgumentException)); |
|
199 | ||
200 | $this->indexManager->expects($this->never()) |
|
201 | ->method('getIndex'); |
|
202 | ||
203 | $this->resetter->resetIndexType('index', 'nonExistant'); |
|
204 | } |
|
205 | ||
206 | public function testPostPopulateWithoutAlias() |
|
207 | { |