diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 95b0585c..1e13375b 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -59,6 +59,11 @@ jobs:
data-file: "./tests/mockoon_tpay.json"
port: 4000
+ - name: Setup NSS database for mkcert
+ run: |
+ mkdir -p ~/.pki/nssdb
+ certutil -d ~/.pki/nssdb -N --empty-password
+
- name: Build application
uses: SyliusLabs/BuildTestAppAction@v2.4
with:
diff --git a/README.md b/README.md
index ad88fe13..4ec2a650 100644
--- a/README.md
+++ b/README.md
@@ -9,8 +9,10 @@
| Package | Version |
|---------------|---------|
-| PHP | ^8.1 |
-| sylius/sylius | ^1.12 |
+| PHP | ^8.2 |
+| sylius/sylius | ^2.0 |
+
+> **Note:** For Sylius 1.x support, please use version `2.x` of this plugin.
### Overview
diff --git a/composer.json b/composer.json
index c038f098..5fee7e9a 100644
--- a/composer.json
+++ b/composer.json
@@ -18,7 +18,6 @@
"php": "^8.2",
"ext-curl": "*",
"defuse/php-encryption": "^2.4",
- "firebase/php-jwt": "^6.10",
"nyholm/psr7": "^1.8",
"payum/core": "^1.7",
"sylius/api-bundle": "^2.0",
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 14b8775c..bf440db5 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -30,7 +30,7 @@
-
+
diff --git a/src/Api/Command/PayByBlikHandler.php b/src/Api/Command/PayByBlikHandler.php
index c02e9fb8..a2478837 100644
--- a/src/Api/Command/PayByBlikHandler.php
+++ b/src/Api/Command/PayByBlikHandler.php
@@ -40,7 +40,6 @@ public function __invoke(PayByBlik $command): PayResult
match ($command->blikAliasAction) {
BlikAliasAction::APPLY => $this->activeBlikAliasPreconditionGuard->denyIfNotActive($blikAlias),
BlikAliasAction::REGISTER => $blikAlias->redefine(),
- default => null,
};
}
diff --git a/tests/E2E/E2ETestCase.php b/tests/E2E/E2ETestCase.php
index b9536db5..f07f47ca 100644
--- a/tests/E2E/E2ETestCase.php
+++ b/tests/E2E/E2ETestCase.php
@@ -7,7 +7,6 @@
use Doctrine\Common\DataFixtures\Purger\ORMPurger;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
-use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\WebDriverDimension;
use Fidry\AliceDataFixtures\LoaderInterface;
use Symfony\Component\Panther\Client;
@@ -24,11 +23,7 @@ abstract class E2ETestCase extends PantherTestCase
protected function setUp(): void
{
- $options = new ChromeOptions();
-
- $this->client = static::createPantherClient([
- 'browser' => self::CHROME, [], $options,
- ]);
+ $this->client = static::createPantherClient(['browser' => self::CHROME]);
$this->client->manage()->window()->setSize(
new WebDriverDimension(1500, 4000),
);
@@ -38,8 +33,8 @@ protected function setUp(): void
protected function tearDown(): void
{
- parent::tearDown();
$this->client->restart();
+ parent::tearDown();
}
/**