Skip to content

Commit

Permalink
minor review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMilek authored and GSadee committed May 8, 2024
1 parent c046fb7 commit 38c8be5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/Sylius/Behat/Context/Ui/Admin/ManagingProductsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ public function thereAreNoProductReviews(ProductInterface $product)
/**
* @Then this product should( also) have an association :productAssociationType with product :product
*/
public function theProductShouldHaveAnAssociationWithProducts(
public function theProductShouldHaveAnAssociationWithProduct(
ProductAssociationTypeInterface $productAssociationType,
ProductInterface $product,
) {
Expand All @@ -1072,10 +1072,9 @@ public function theProductShouldHaveAnAssociationWithProducts(
public function theProductsShouldHaveAnAssociationWithProducts(
ProductAssociationTypeInterface $productAssociationType,
array $products,
): void
{
): void {
foreach ($products as $product) {
$this->theProductShouldHaveAnAssociationWithProducts($productAssociationType, $product);
$this->theProductShouldHaveAnAssociationWithProduct($productAssociationType, $product);
}
}

Expand Down
3 changes: 1 addition & 2 deletions src/Sylius/Bundle/AdminBundle/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<imports>
<import resource="services/*.xml" />
<import resource="services/product/*.xml" />
<import resource="services/**/*.xml" />
</imports>

<parameters>
Expand Down

0 comments on commit 38c8be5

Please sign in to comment.