Code Duplication    Length = 7-9 lines in 2 locations

tests/behat/src/Context/FixtureContext.php 2 locations

@@ 21-29 (lines=9) @@
18
     * @param string $type
19
     * @param string $name
20
     */
21
    public function stepISelectGalleryItem($type, $name) {
22
        $page = $this->getSession()->getPage();
23
        $gallery = $page->find(
24
            'xpath',
25
            "//div[contains(@class, 'gallery-item--{$type}')]//div[contains(text(), '{$name}')]"
26
        );
27
        assertNotNull($gallery, ucfirst($type) . " named $name could not be found");
28
        $gallery->click();
29
    }
30
31
    /**
32
     * @Then /^I should see the "([^"]*)" form$/
@@ 35-41 (lines=7) @@
32
     * @Then /^I should see the "([^"]*)" form$/
33
     * @param string $id HTML ID of form
34
     */
35
    public function iShouldSeeTheForm($id)
36
    {
37
        $page = $this->getSession()->getPage();
38
        $form = $page->find('css', "form#{$id}");
39
        assertNotNull($form, "form with id $id could not be found");
40
        assertTrue($form->isVisible(), "form with id $id is not visible");
41
    }
42
}
43