From 0a0b5fcc020d4d1e842b8b247b83bd6bde79cf4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kali=C5=84ski?= Date: Tue, 9 Jul 2024 16:23:14 +0200 Subject: [PATCH] OP-266 Apply ECS fixes --- tests/Application/config/bundles.php | 1 - tests/Behat/Context/Ui/Shop/MailChimpContext.php | 7 +++++-- .../Behat/Fake/AlwaysSuccessMailChimpClient.php | 16 +++++++++++----- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/tests/Application/config/bundles.php b/tests/Application/config/bundles.php index 70ab974..8c4f575 100644 --- a/tests/Application/config/bundles.php +++ b/tests/Application/config/bundles.php @@ -66,5 +66,4 @@ League\FlysystemBundle\FlysystemBundle::class => ['all' => true], BabDev\PagerfantaBundle\BabDevPagerfantaBundle::class => ['all' => true], SyliusLabs\Polyfill\Symfony\Security\Bundle\SyliusLabsPolyfillSymfonySecurityBundle::class => ['all' => true], - ]; diff --git a/tests/Behat/Context/Ui/Shop/MailChimpContext.php b/tests/Behat/Context/Ui/Shop/MailChimpContext.php index 7cd86d6..36ab382 100644 --- a/tests/Behat/Context/Ui/Shop/MailChimpContext.php +++ b/tests/Behat/Context/Ui/Shop/MailChimpContext.php @@ -36,8 +36,11 @@ final class MailChimpContext implements Context * @param string $apiKey * @param string $listId */ - public function __construct(SharedStorageInterface $sharedStorage, $apiKey, $listId) - { + public function __construct( + SharedStorageInterface $sharedStorage, + $apiKey, + $listId + ) { $this->sharedStorage = $sharedStorage; $this->mailChimp = new AlwaysSuccessMailChimpClient($apiKey); $this->listId = $listId; diff --git a/tests/Behat/Fake/AlwaysSuccessMailChimpClient.php b/tests/Behat/Fake/AlwaysSuccessMailChimpClient.php index 0d979b9..74d91d3 100644 --- a/tests/Behat/Fake/AlwaysSuccessMailChimpClient.php +++ b/tests/Behat/Fake/AlwaysSuccessMailChimpClient.php @@ -14,17 +14,23 @@ final class AlwaysSuccessMailChimpClient extends MailChimp { - public function post($method, $args = [], $timeout = self::TIMEOUT) - { + public function post( + $method, + $args = [], + $timeout = self::TIMEOUT + ) { return ['status' => 'subscribed']; } - public function get($method, $args = [], $timeout = self::TIMEOUT) - { + public function get( + $method, + $args = [], + $timeout = self::TIMEOUT + ) { return ['status' => 'subscribed']; } - public function getLastError():bool + public function getLastError(): bool { return false; }