Skip to content

Commit

Permalink
Fix phpstan (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Aug 29, 2022
1 parent a656811 commit 9524bff
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 164 deletions.
153 changes: 0 additions & 153 deletions tests/Behat/Context/Messenger/MessengerContext.php

This file was deleted.

4 changes: 3 additions & 1 deletion tests/Behat/Context/Ui/Admin/ManagingProductsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ public function iShouldBeNotifiedThatItHasBeenSuccessfullyEnqueued(): void
public function theProductShouldHaveAnAssociationWithProducts(
string $code,
ProductAssociationTypeInterface $productAssociationType,
...$productsNames,
string ...$productsNames,
): void {
$product = $this->productRepository->findOneByCode($code);
Assert::isInstanceOf($product, ProductInterface::class);
$this->updateSimpleProductPage->open(['id' => $product->getId()]);
foreach ($productsNames as $productName) {
Assert::true(
Expand All @@ -83,6 +84,7 @@ public function theProductShouldNotHaveAnAssociationWithProduct(
string $productName,
): void {
$product = $this->productRepository->findOneByCode($code);
Assert::isInstanceOf($product, ProductInterface::class);
$this->updateSimpleProductPage->open(['id' => $product->getId()]);
Assert::false(
$this->updateSimpleProductPage->hasAssociatedProduct($productName, $productAssociationType),
Expand Down
5 changes: 0 additions & 5 deletions tests/Behat/Resources/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@
<argument type="service" id="sylius.repository.product_association_type" />
</service>

<service id="webgriffe_sylius_akeneo.behat.context.messenger" class="Tests\Webgriffe\SyliusAkeneoPlugin\Behat\Context\Messenger\MessengerContext">
<argument type="service" id="messenger.transport.main"/>
<argument type="service" id="webgriffe_sylius_akeneo.message_handler.item_import"/>
</service>

<service id="webgriffe_sylius_akeneo.behat.context.system.filesystem" class="Tests\Webgriffe\SyliusAkeneoPlugin\Behat\Context\System\FilesystemContext">
<argument>%webgriffe_sylius_akeneo.temporary_directory%</argument>
<argument>%webgriffe_sylius_akeneo.temporary_files_prefix%</argument>
Expand Down
5 changes: 0 additions & 5 deletions tests/Behat/Resources/suites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ default:

- webgriffe_sylius_akeneo.behat.context.cli.import_command

- webgriffe_sylius_akeneo.behat.context.messenger

- webgriffe_sylius_akeneo.behat.context.system.filesystem
- webgriffe_sylius_akeneo.behat.context.system.datetime

Expand All @@ -110,7 +108,6 @@ default:
- webgriffe_sylius_akeneo.behat.context.setup.queue

- sylius.behat.context.ui.admin.managing_products
- webgriffe_sylius_akeneo.behat.context.messenger
- webgriffe_sylius_akeneo.behat.context.ui.admin.managing_products
filters:
tags: "@enqueuing_products && @ui"
Expand All @@ -126,8 +123,6 @@ default:

- webgriffe_sylius_akeneo.behat.context.cli.import_command

- webgriffe_sylius_akeneo.behat.context.messenger

- webgriffe_sylius_akeneo.behat.context.system.filesystem
- webgriffe_sylius_akeneo.behat.context.system.datetime

Expand Down

0 comments on commit 9524bff

Please sign in to comment.