Skip to content

Commit

Permalink
bug #13687 [Behat][API] Remove duplicated steps in ProductContext (GS…
Browse files Browse the repository at this point in the history
…adee)

This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.11
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | after merge #13684 
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.10 or 1.11 branch(the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------

f354e22 [Behat][API] Remove duplicated steps in ProductContext
  • Loading branch information
GSadee authored Feb 23, 2022
2 parents b9a8e8a + f354e22 commit a5331a6
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/Sylius/Behat/Context/Api/Shop/ProductContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,26 +339,6 @@ public function theLastProductOnTheListShouldHaveName(string $name): void
Assert::same(end($products)['name'], $name);
}

/**
* @Then the first product on the list should have name :name
*/
public function theFirstProductOnTheListShouldHaveName(string $name): void
{
$products = $this->responseChecker->getCollection($this->client->getLastResponse());

Assert::same($products[0]['translations']['en_US']['name'], $name);
}

/**
* @Then the last product on the list should have name :name
*/
public function theLastProductOnTheListShouldHaveName(string $name): void
{
$products = $this->responseChecker->getCollection($this->client->getLastResponse());

Assert::same(end($products)['translations']['en_US']['name'], $name);
}

/**
* @When /^I should see only (\d+) product(s)$/
*/
Expand Down

0 comments on commit a5331a6

Please sign in to comment.