| @@ 578-595 (lines=18) @@ | ||
| 575 | /** |
|
| 576 | * @covers FlexiPeeHP\FlexiBeeRO::getColumnsInfo |
|
| 577 | */ |
|
| 578 | public function testgetColumnsInfo() |
|
| 579 | { |
|
| 580 | switch ($this->object->getEvidence()) { |
|
| 581 | case '': |
|
| 582 | case 'c': |
|
| 583 | case 'hooks': |
|
| 584 | case 'changes': |
|
| 585 | case 'nastaveni': |
|
| 586 | $this->assertNull($this->object->getColumnsInfo()); |
|
| 587 | $this->assertNotEmpty($this->object->getColumnsInfo('faktura-vydana'), |
|
| 588 | 'Cannot obtain structure for na evidence'); |
|
| 589 | break; |
|
| 590 | default: |
|
| 591 | $this->assertNotEmpty($this->object->getColumnsInfo(), |
|
| 592 | 'Cannot obtain structure for '.$this->object->getEvidence()); |
|
| 593 | break; |
|
| 594 | } |
|
| 595 | } |
|
| 596 | ||
| 597 | /** |
|
| 598 | * @covers FlexiPeeHP\FlexiBeeRO::getActionsInfo |
|
| @@ 600-617 (lines=18) @@ | ||
| 597 | /** |
|
| 598 | * @covers FlexiPeeHP\FlexiBeeRO::getActionsInfo |
|
| 599 | */ |
|
| 600 | public function testgetActionsInfo() |
|
| 601 | { |
|
| 602 | switch ($this->object->getEvidence()) { |
|
| 603 | case '': |
|
| 604 | case 'c': |
|
| 605 | case 'hooks': |
|
| 606 | case 'changes': |
|
| 607 | case 'nastaveni': |
|
| 608 | $this->assertNull($this->object->getActionsInfo()); |
|
| 609 | $this->assertNotEmpty($this->object->getActionsInfo('faktura-vydana'), |
|
| 610 | 'Cannot obtain actions for na evidence'); |
|
| 611 | break; |
|
| 612 | default: |
|
| 613 | $this->assertNotEmpty($this->object->getActionsInfo(), |
|
| 614 | 'Cannot obtain actions for '.$this->object->getEvidence()); |
|
| 615 | break; |
|
| 616 | } |
|
| 617 | } |
|
| 618 | ||
| 619 | /** |
|
| 620 | * @covers FlexiPeeHP\FlexiBeeRO::getEvidenceUrl |
|