Code Duplication    Length = 9-9 lines in 3 locations

src/Tests/Behat/Context/Setup/CustomBlockContext.php 3 locations

@@ 46-54 (lines=9) @@
43
    /**
44
     * @Given the store has custom block :name
45
     */
46
    public function theStoreHasCustomBlock($name)
47
    {
48
        $customBlock = $this->customBlockExampleFactory->create(['name' => $name]);
49
50
        $this->customBlockManager->persist($customBlock);
51
        $this->customBlockManager->flush();
52
53
        $this->sharedStorage->set('custom_block', $customBlock);
54
    }
55
56
    /**
57
     * @Given the store has custom block :name with body :body
@@ 59-67 (lines=9) @@
56
    /**
57
     * @Given the store has custom block :name with body :body
58
     */
59
    public function theStoreHasCustomBlockWithBody($name, $body)
60
    {
61
        $customBlock = $this->customBlockExampleFactory->create(['name' => $name, 'body' => $body]);
62
63
        $this->customBlockManager->persist($customBlock);
64
        $this->customBlockManager->flush();
65
66
        $this->sharedStorage->set('custom_block', $customBlock);
67
    }
68
69
    /**
70
     * @Given the store has custom block :name with title :title
@@ 72-80 (lines=9) @@
69
    /**
70
     * @Given the store has custom block :name with title :title
71
     */
72
    public function theStoreHasCustomBlockWithTitle($name, $title)
73
    {
74
        $customBlock = $this->customBlockExampleFactory->create(['name' => $name, 'title' => $title]);
75
76
        $this->customBlockManager->persist($customBlock);
77
        $this->customBlockManager->flush();
78
79
        $this->sharedStorage->set('custom_block', $customBlock);
80
    }
81
}
82