Skip to content

Commit

Permalink
OP-266 Apply ECS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkalon committed Jul 9, 2024
1 parent 812de79 commit 0a0b5fc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
1 change: 0 additions & 1 deletion tests/Application/config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],

];
7 changes: 5 additions & 2 deletions tests/Behat/Context/Ui/Shop/MailChimpContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
16 changes: 11 additions & 5 deletions tests/Behat/Fake/AlwaysSuccessMailChimpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0a0b5fc

Please sign in to comment.