Skip to content

Commit

Permalink
remove useless ShopUrl reference in behat test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-rolland committed Mar 31, 2021
1 parent 0fcd9b9 commit a80345b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,11 @@ public function addShop(string $reference, string $shopName, string $color, stri
}

/**
* @Given I add a shop url :reference to shop :shopReference
* @Given I add a shop url to shop :shopReference
*
* @param string $reference
* @param string $shopReference
*/
public function addShopUrl(string $reference, string $shopReference): void
public function addShopUrl(string $shopReference): void
{
$shop = SharedStorage::getStorage()->get($shopReference);
$shopUrl = new ShopUrl();
Expand All @@ -152,8 +151,6 @@ public function addShopUrl(string $reference, string $shopReference): void
if (!$shopUrl->add()) {
throw new RuntimeException(sprintf('Could not create shop url: %s', Db::getInstance()->getMsgError()));
}

SharedStorage::getStorage()->set($reference, $shopUrl);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Feature: Search shops given a search term (BO)
And I add a shop "shop2" with name "test_second_shop" and color "red" for the group "test_second_shop_group"
And I add a shop "shop3" with name "test_third_shop" and color "blue" for the group "test_second_shop_group"
And I add a shop "shop4" with name "test_shop_without_url" and color "blue" for the group "test_second_shop_group"
And I add a shop url "shop_url1" to shop "shop1"
And I add a shop url "shop_url2" to shop "shop2"
And I add a shop url "shop_url3" to shop "shop3"
And I add a shop url to shop "shop1"
And I add a shop url to shop "shop2"
And I add a shop url to shop "shop3"
When I search for the term "test" I should get the following results:
| name | group_name | color | group_color | is_shop_group |
| test_shop | Default | | | false |
Expand Down

0 comments on commit a80345b

Please sign in to comment.