@@ 373-396 (lines=24) @@ | ||
370 | * @return void |
|
371 | * @covers ::getAllElements |
|
372 | */ |
|
373 | public function testGetAllElements() |
|
374 | { |
|
375 | $elements = $this->paymentSlip->getAllElements(); |
|
376 | ||
377 | $expectedElements = array( |
|
378 | 'bankLeft', |
|
379 | 'bankRight', |
|
380 | 'recipientLeft', |
|
381 | 'recipientRight', |
|
382 | 'accountLeft', |
|
383 | 'accountRight', |
|
384 | 'amountFrancsLeft', |
|
385 | 'amountFrancsRight', |
|
386 | 'amountCentsLeft', |
|
387 | 'amountCentsRight', |
|
388 | 'referenceNumberLeft', |
|
389 | 'referenceNumberRight', |
|
390 | 'payerLeft', |
|
391 | 'payerRight', |
|
392 | 'codeLine' |
|
393 | ); |
|
394 | ||
395 | $this->assertElementsArray($expectedElements, $elements); |
|
396 | } |
|
397 | ||
398 | /** |
|
399 | * Tests the getAllElements method when no elements are shown |
@@ 271-294 (lines=24) @@ | ||
268 | * @return void |
|
269 | * @covers ::getAllElements |
|
270 | */ |
|
271 | public function testGetAllElements() |
|
272 | { |
|
273 | $elements = $this->paymentSlip->getAllElements(); |
|
274 | ||
275 | $expectedElements = array( |
|
276 | 'bankLeft', |
|
277 | 'bankRight', |
|
278 | 'recipientLeft', |
|
279 | 'recipientRight', |
|
280 | 'accountLeft', |
|
281 | 'accountRight', |
|
282 | 'amountFrancsLeft', |
|
283 | 'amountFrancsRight', |
|
284 | 'amountCentsLeft', |
|
285 | 'amountCentsRight', |
|
286 | 'payerLeft', |
|
287 | 'payerRight', |
|
288 | 'IbanLeft', |
|
289 | 'IbanRight', |
|
290 | 'paymentReason', |
|
291 | ); |
|
292 | ||
293 | $this->assertElementsArray($expectedElements, $elements); |
|
294 | } |
|
295 | ||
296 | /** |
|
297 | * Tests the getAllElements method when no elements are shown |