Code Duplication    Length = 19-21 lines in 3 locations

testing/src/FlexiPeeHP/FlexiBeeROTest.php 3 locations

@@ 727-745 (lines=19) @@
724
    /**
725
     * @covers FlexiPeeHP\FlexiBeeRO::getColumnsInfo
726
     */
727
    public function testgetColumnsInfo()
728
    {
729
        switch ($this->object->getEvidence()) {
730
            case '':
731
            case 'c':
732
            case 'hooks':
733
            case 'status':
734
            case 'changes':
735
            case 'nastaveni':
736
                $this->assertNull($this->object->getColumnsInfo());
737
                $this->assertNotEmpty($this->object->getColumnsInfo('faktura-vydana'),
738
                    'Cannot obtain structure for na evidence');
739
                break;
740
            default:
741
                $this->assertNotEmpty($this->object->getColumnsInfo(),
742
                    'Cannot obtain structure for '.$this->object->getEvidence());
743
                break;
744
        }
745
    }
746
747
    /**
748
     * @covers FlexiPeeHP\FlexiBeeRO::getActionsInfo
@@ 750-768 (lines=19) @@
747
    /**
748
     * @covers FlexiPeeHP\FlexiBeeRO::getActionsInfo
749
     */
750
    public function testgetActionsInfo()
751
    {
752
        switch ($this->object->getEvidence()) {
753
            case '':
754
            case 'c':
755
            case 'hooks':
756
            case 'status':
757
            case 'changes':
758
            case 'nastaveni':
759
                $this->assertNull($this->object->getActionsInfo());
760
                $this->assertNotEmpty($this->object->getActionsInfo('faktura-vydana'),
761
                    'Cannot obtain actions for na evidence');
762
                break;
763
            default:
764
                $this->assertNotEmpty($this->object->getActionsInfo(),
765
                    'Cannot obtain actions for '.$this->object->getEvidence());
766
                break;
767
        }
768
    }
769
770
    /**
771
     * @covers FlexiPeeHP\FlexiBeeRO::getRelationsInfo
@@ 773-793 (lines=21) @@
770
    /**
771
     * @covers FlexiPeeHP\FlexiBeeRO::getRelationsInfo
772
     */
773
    public function testgetRelationsInfo()
774
    {
775
        switch ($this->object->getEvidence()) {
776
            case '':
777
            case 'c':
778
            case 'hooks':
779
            case 'status':
780
            case 'changes':
781
            case 'nastaveni':
782
            case 'strom-cenik':
783
            case 'ucetni-obdobi':
784
                $this->assertNull($this->object->getRelationsInfo());
785
                $this->assertNotEmpty($this->object->getRelationsInfo('faktura-vydana'),
786
                    'Cannot obtain relations for na evidence');
787
                break;
788
            default:
789
                $this->assertNotEmpty($this->object->getRelationsInfo(),
790
                    'Cannot obtain relations for '.$this->object->getEvidence());
791
                break;
792
        }
793
    }
794
795
    /**
796
     * @covers FlexiPeeHP\FlexiBeeRO::getEvidenceUrl