Code Duplication    Length = 13-17 lines in 2 locations

tests/FwlibTest/Html/Generator/Component/Form/RendererTest.php 1 location

@@ 210-222 (lines=13) @@
207
    }
208
209
210
    public function testGetValidateMessagesOutput()
211
    {
212
        $form = $this->buildFormMock(['isValid']);
213
        $form->expects($this->once())
214
            ->method('isValid')
215
            ->willReturn(true);
216
217
        $renderer = $this->buildMock();
218
        $renderer->setForm($form);
219
220
        $output = $this->reflectionCall($renderer, 'getValidateMessagesOutput');
221
        $this->assertEquals('', $output);
222
    }
223
}
224

tests/FwlibTest/Html/ListView/ListViewTest.php 1 location

@@ 102-118 (lines=17) @@
99
    }
100
101
102
    public function testGetFilledListDto()
103
    {
104
        $listView = $this->buildMock();
105
106
        /** @var MockObject|AbstractRetriever $retriever */
107
        $retriever = $this->getMock(
108
            AbstractRetriever::class,
109
            ['getListBody', 'getRowCount']
110
        );
111
        $retriever->expects($this->once())
112
            ->method('getRowCount')
113
            ->willReturn(42);
114
        $listView->setRetriever($retriever);
115
116
        $listDto = $this->reflectionCall($listView, 'getFilledListDto');
117
        $this->assertEquals(42, $listDto->getRowCount());
118
    }
119
120
121
    public function testGetHtml()