Code Duplication    Length = 7-9 lines in 2 locations

src/Sylius/Behat/Context/Ui/Admin/ManagingCustomersContext.php 1 location

@@ 102-110 (lines=9) @@
99
     * @Then the customer :customer should appear in the store
100
     * @Then the customer :customer should still have this email
101
     */
102
    public function theCustomerShould(CustomerInterface $customer)
103
    {
104
        $this->indexPage->open();
105
106
        Assert::true(
107
            $this->indexPage->isSingleResourceOnPage(['Email' => $customer->getEmail()]),
108
            sprintf('Customer with email %s should exist but it does not.', $customer->getEmail())
109
        );
110
    }
111
112
    /**
113
     * @When I select :gender as its gender

src/Sylius/Behat/Context/Ui/Admin/ManagingOrdersContext.php 1 location

@@ 121-127 (lines=7) @@
118
    /**
119
     * @Then I should see a single order from customer :customer
120
     */
121
    public function iShouldSeeASingleOrderFromCustomer(CustomerInterface $customer)
122
    {
123
        Assert::true(
124
            $this->indexPage->isSingleResourceOnPage(['customer' => $customer->getEmail()]),
125
            sprintf('Cannot find order for customer "%s" in the list.', $customer->getEmail())
126
        );
127
    }
128
129
    /**
130
     * @Then it should have been placed by the customer :customerEmail