Skip to content

Commit

Permalink
remove unneded elements
Browse files Browse the repository at this point in the history
  • Loading branch information
arti0090 committed Feb 18, 2021
1 parent e58e741 commit 656719d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
2 changes: 0 additions & 2 deletions src/Sylius/Behat/Client/ApiSecurityClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

namespace Sylius\Behat\Client;

use Symfony\Component\HttpFoundation\Response;

interface ApiSecurityClientInterface
{
public function prepareLoginRequest(): void;
Expand Down
11 changes: 0 additions & 11 deletions src/Sylius/Behat/Context/Api/Shop/LoginContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,17 +175,6 @@ public function iShouldBeNotifiedThatEmailWithResetInstructionWasSent(): void
Assert::same($response->getStatusCode(), 202);
}

/**
* @Then I should be notified that the :elementName is required
*/
public function iShouldBeNotifiedThatFirstNameIsRequired(string $elementName): void
{
Assert::contains(
$this->responseChecker->getError($this->apiClient->getLastResponse()),
sprintf('Please enter your %s.', $elementName)
);
}

private function addLocaleCode(string $localeCode): void
{
$this->request->updateContent(['localeCode' => $localeCode]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ default:
- sylius.behat.context.setup.user

- sylius.behat.context.api.email
- sylius.behat.context.api.shop.customer
- sylius.behat.context.api.shop.login


filters:
tags: "@customer_login && @api"
Expand Down

0 comments on commit 656719d

Please sign in to comment.