@@ 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 | { |
|
@@ 194-205 (lines=12) @@ | ||
191 | /** |
|
192 | * @expectedException \InvalidArgumentException |
|
193 | */ |
|
194 | public function testNonExistantResetType() |
|
195 | { |
|
196 | $this->configManager->expects($this->once()) |
|
197 | ->method('getTypeConfiguration') |
|
198 | ->with('index', 'nonExistant') |
|
199 | ->will($this->throwException(new \InvalidArgumentException)); |
|
200 | ||
201 | $this->indexManager->expects($this->never()) |
|
202 | ->method('getIndex'); |
|
203 | ||
204 | $this->resetter->resetIndexType('index', 'nonExistant'); |
|
205 | } |
|
206 | ||
207 | public function testPostPopulateWithoutAlias() |
|
208 | { |