Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 851b3de

Browse files
authored
minor #13306 [Minor][Behat] Style and type refactor (lchrusciel)
This PR was merged into the 1.11-dev branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | #13287 (comment) | License | MIT <!-- - Bug fixes must be submitted against the 1.9 or 1.10 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 ------- 1001bb1 [Minor][Behat] Style and type refactor
2 parents 4644f74 + 1001bb1 commit 851b3de

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Sylius/Behat/Context/Api/Shop/CurrencyContext.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ public function iBrowseCurrencies(): void
4646
* @Then I should see :firstCurrency and :secondCurrency in the list
4747
* @Then I should see :firstCurrency, :secondCurrency and :thirdCurrency in the list
4848
*/
49-
public function iShouldSeeCurrenciesInTheList(... $currencies): void
49+
public function iShouldSeeCurrenciesInTheList(string ...$currenciesCodes): void
5050
{
5151
$response = $this->client->getLastResponse();
5252

53-
foreach ($currencies as $currency) {
54-
$this->responseChecker->getCollectionItemsWithValue($response, 'code', $currency);
53+
foreach ($currenciesCodes as $currencyCode) {
54+
$this->responseChecker->getCollectionItemsWithValue($response, 'code', $currencyCode);
5555
}
5656
}
5757
}

0 commit comments

Comments
 (0)