Skip to content

Commit

Permalink
Merge pull request #178 from loic425/features/improve-code-quality
Browse files Browse the repository at this point in the history
improve code quality on managing customers and registration behat con…
  • Loading branch information
loic425 committed May 2, 2019
2 parents 87bc0ae + 0ecf8c0 commit dfff9f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Behat/Context/Ui/Backend/ManagingCustomersContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use App\Behat\Page\Backend\Customer\IndexPage;
use App\Behat\Page\Backend\Customer\UpdatePage;
use App\Behat\Service\Resolver\CurrentPageResolverInterface;
use Sylius\Component\Customer\Model\CustomerInterface;
use App\Entity\CustomerInterface;
use Webmozart\Assert\Assert;

final class ManagingCustomersContext implements Context
Expand Down
10 changes: 1 addition & 9 deletions src/Behat/Context/Ui/Frontend/RegistrationContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace App\Behat\Context\Ui\Frontend;

use App\Entity\CustomerInterface;
use Behat\Behat\Context\Context;
use App\Behat\NotificationType;
use App\Behat\Page\Frontend\Account\DashboardPage;
Expand All @@ -23,7 +24,6 @@
use App\Behat\Page\Frontend\HomePage;
use App\Behat\Service\NotificationCheckerInterface;
use App\Behat\Service\SharedStorageInterface;
use Sylius\Component\Customer\Model\CustomerInterface;
use Sylius\Component\User\Model\UserInterface;
use Webmozart\Assert\Assert;

Expand Down Expand Up @@ -161,14 +161,6 @@ public function iDoNotConfirmPassword()
$this->registerPage->verifyPassword(null);
}

/**
* @When I specify the phone number as :phoneNumber
*/
public function iSpecifyThePhoneNumberAs($phoneNumber)
{
$this->registerPage->specifyPhoneNumber($phoneNumber);
}

/**
* @When I register this account
* @When I try to register this account
Expand Down

0 comments on commit dfff9f4

Please sign in to comment.