@@ 219-233 (lines=15) @@ | ||
216 | $this->client->getStatement($statementId); |
|
217 | } |
|
218 | ||
219 | public function testGetVoidedStatement() |
|
220 | { |
|
221 | $statementId = '12345678-1234-5678-1234-567812345678'; |
|
222 | $statement = $this->createStatement(); |
|
223 | $this->validateRetrieveApiCall( |
|
224 | 'get', |
|
225 | 'statements', |
|
226 | array('voidedStatementId' => $statementId), |
|
227 | 200, |
|
228 | 'Statement', |
|
229 | $statement |
|
230 | ); |
|
231 | ||
232 | $this->client->getVoidedStatement($statementId); |
|
233 | } |
|
234 | ||
235 | /** |
|
236 | * @expectedException \Xabbuh\XApi\Common\Exception\NotFoundException |
|
@@ 238-251 (lines=14) @@ | ||
235 | /** |
|
236 | * @expectedException \Xabbuh\XApi\Common\Exception\NotFoundException |
|
237 | */ |
|
238 | public function testGetVoidedStatementWithNotExistingStatement() |
|
239 | { |
|
240 | $statementId = '12345678-1234-5678-1234-567812345678'; |
|
241 | $this->validateRetrieveApiCall( |
|
242 | 'get', |
|
243 | 'statements', |
|
244 | array('voidedStatementId' => $statementId), |
|
245 | 404, |
|
246 | 'Statement', |
|
247 | 'There is no statement associated with this id' |
|
248 | ); |
|
249 | ||
250 | $this->client->getVoidedStatement($statementId); |
|
251 | } |
|
252 | ||
253 | public function testGetStatements() |
|
254 | { |