| @@ 557-574 (lines=18) @@ | ||
| 554 | /** |
|
| 555 | * @covers FlexiPeeHP\FlexiBeeRO::getColumnsInfo |
|
| 556 | */ |
|
| 557 | public function testgetColumnsInfo() |
|
| 558 | { |
|
| 559 | switch ($this->object->getEvidence()) { |
|
| 560 | case '': |
|
| 561 | case 'c': |
|
| 562 | case 'hooks': |
|
| 563 | case 'changes': |
|
| 564 | case 'nastaveni': |
|
| 565 | $this->assertNull($this->object->getColumnsInfo()); |
|
| 566 | $this->assertNotEmpty($this->object->getColumnsInfo('faktura-vydana'), |
|
| 567 | 'Cannot obtain structure for na evidence'); |
|
| 568 | break; |
|
| 569 | default: |
|
| 570 | $this->assertNotEmpty($this->object->getColumnsInfo(), |
|
| 571 | 'Cannot obtain structure for '.$this->object->getEvidence()); |
|
| 572 | break; |
|
| 573 | } |
|
| 574 | } |
|
| 575 | ||
| 576 | /** |
|
| 577 | * @covers FlexiPeeHP\FlexiBeeRO::getActionsInfo |
|
| @@ 579-596 (lines=18) @@ | ||
| 576 | /** |
|
| 577 | * @covers FlexiPeeHP\FlexiBeeRO::getActionsInfo |
|
| 578 | */ |
|
| 579 | public function testgetActionsInfo() |
|
| 580 | { |
|
| 581 | switch ($this->object->getEvidence()) { |
|
| 582 | case '': |
|
| 583 | case 'c': |
|
| 584 | case 'hooks': |
|
| 585 | case 'changes': |
|
| 586 | case 'nastaveni': |
|
| 587 | $this->assertNull($this->object->getActionsInfo()); |
|
| 588 | $this->assertNotEmpty($this->object->getActionsInfo('faktura-vydana'), |
|
| 589 | 'Cannot obtain actions for na evidence'); |
|
| 590 | break; |
|
| 591 | default: |
|
| 592 | $this->assertNotEmpty($this->object->getActionsInfo(), |
|
| 593 | 'Cannot obtain actions for '.$this->object->getEvidence()); |
|
| 594 | break; |
|
| 595 | } |
|
| 596 | } |
|
| 597 | ||
| 598 | /** |
|
| 599 | * @covers FlexiPeeHP\FlexiBeeRO::getEvidenceUrl |
|