Skip to content

Commit 6422724

Browse files
authored
Add MolliePlugin as a required dependency (#1117)
2 parents 0057303 + c0b67e9 commit 6422724

File tree

37 files changed

+901
-14
lines changed

37 files changed

+901
-14
lines changed

.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,8 @@ JWT_PASSPHRASE=e7c5fca1060bdf6ad23c33e4c236081f
3434
###> symfony/mailer ###
3535
MAILER_DSN=null://null
3636
###< symfony/mailer ###
37+
38+
###> knplabs/knp-snappy-bundle ###
39+
WKHTMLTOPDF_PATH=/usr/local/bin/wkhtmltopdf
40+
WKHTMLTOIMAGE_PATH=/usr/local/bin/wkhtmltoimage
41+
###< knplabs/knp-snappy-bundle ###

.github/workflows/auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
auto-merge:
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-latest
99
steps:
1010
-
1111
name: Checkout repository

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818

1919
jobs:
2020
tests:
21-
runs-on: ubuntu-20.04
21+
runs-on: ubuntu-latest
2222

2323
name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}, Node ${{ matrix.node }}"
2424

@@ -64,6 +64,10 @@ jobs:
6464
composer require --dev --no-update --no-progress --no-scripts --no-plugins "payum/paypal-express-checkout-nvp:^1.7.3"
6565
composer require --dev --no-update --no-progress --no-scripts --no-plugins "payum/stripe:^1.7.3"
6666
67+
-
68+
name: Allow excluding features in behat
69+
run: composer require friends-of-behat/exclude-specifications-extension --dev
70+
6771
-
6872
name: Setup Node
6973
uses: actions/setup-node@v4
@@ -206,7 +210,7 @@ jobs:
206210

207211
-
208212
name: Run non-JS Behat (without managing catalog promotion scenarios and exchange rates)
209-
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@mink:chromedriver&&~@todo&&~@cli&&~@managing_catalog_promotions&&~@managing_exchange_rates"
213+
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@mink:chromedriver&&~@todo&&~@cli&&~@managing_catalog_promotions&&~@managing_exchange_rates" --profile=build
210214

211215
-
212216
name: Run JS Behat (Chromedriver)

assets/admin/entrypoint.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
import '../../vendor/sylius/mollie-plugin/assets/admin/entrypoint';
12
// In this file you can import assets like images or stylesheets
23
console.log('Hello Webpack Encore! Edit me in assets/admin/entrypoint.js');

assets/shop/entrypoint.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
import '../../vendor/sylius/mollie-plugin/assets/shop/entrypoint';
12
// In this file you can import assets like images or stylesheets
23
console.log('Hello Webpack Encore! Edit me in assets/shop/entrypoint.js');

behat.yml.dist

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,69 @@ default:
6161
gherkin:
6262
filters:
6363
tags: "~@todo&&~@cli" # CLI is excluded as it registers an error handler that mutes fatal errors
64+
65+
66+
build:
67+
formatters:
68+
pretty:
69+
verbose: true
70+
paths: false
71+
snippets: false
72+
73+
extensions:
74+
DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~
75+
Robertfausk\Behat\PantherExtension: ~
76+
77+
FriendsOfBehat\MinkDebugExtension:
78+
directory: etc/build
79+
clean_start: false
80+
screenshot: true
81+
82+
Behat\MinkExtension:
83+
files_path: "%paths.base%/vendor/sylius/sylius/src/Sylius/Behat/Resources/fixtures/"
84+
base_url: "https://127.0.0.1:8080/"
85+
default_session: symfony
86+
javascript_session: panther
87+
sessions:
88+
symfony:
89+
symfony: ~
90+
chromedriver:
91+
chrome:
92+
api_url: http://127.0.0.1:9222
93+
validate_certificate: false
94+
chrome_headless_second_session:
95+
chrome:
96+
api_url: http://127.0.0.1:9222
97+
validate_certificate: false
98+
panther:
99+
panther:
100+
manager_options:
101+
connection_timeout_in_ms: 5000
102+
request_timeout_in_ms: 120000
103+
chromedriver_arguments:
104+
- --log-path=etc/build/chromedriver.log
105+
- --verbose
106+
capabilities:
107+
acceptSslCerts: true
108+
acceptInsecureCerts: true
109+
unexpectedAlertBehaviour: accept
110+
show_auto: false
111+
112+
FriendsOfBehat\SymfonyExtension: ~
113+
114+
FriendsOfBehat\VariadicExtension: ~
115+
116+
FriendsOfBehat\SuiteSettingsExtension:
117+
paths:
118+
- "vendor/sylius/sylius/features"
119+
- "features"
120+
121+
FriendsOfBehat\ExcludeSpecificationsExtension:
122+
features:
123+
- vendor/sylius/sylius/features/order/managing_orders/handling_order_payment/refunding_order_payment.feature
124+
125+
SyliusLabs\SuiteTagsExtension: ~
126+
127+
gherkin:
128+
filters:
129+
tags: "~@todo&&~@cli" # CLI is excluded as it registers an error handler that mutes fatal errors

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
],
2626
"require": {
2727
"php": "^8.1",
28+
"sylius/mollie-plugin": "^2.0",
2829
"sylius/paypal-plugin": "^1.7",
2930
"sylius/sylius": "~1.14.0",
3031
"symfony/dotenv": "^5.4 || ^6.4",

config/bundles.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,8 @@
6161
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
6262
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
6363
Sylius\PayPalPlugin\SyliusPayPalPlugin::class => ['all' => true],
64+
Bazinga\Bundle\JsTranslationBundle\BazingaJsTranslationBundle::class => ['all' => true],
65+
Knp\Bundle\SnappyBundle\KnpSnappyBundle::class => ['all' => true],
66+
Sylius\RefundPlugin\SyliusRefundPlugin::class => ['all' => true],
67+
Sylius\MolliePlugin\SyliusMolliePlugin::class => ['all' => true],
6468
];

config/packages/knp_snappy.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
knp_snappy:
2+
pdf:
3+
enabled: true
4+
binary: '%env(WKHTMLTOPDF_PATH)%'
5+
options: []
6+
image:
7+
enabled: true
8+
binary: '%env(WKHTMLTOIMAGE_PATH)%'
9+
options: []

config/packages/sylius_mollie.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
imports:
2+
- { resource: "@SyliusMolliePlugin/config/config.yaml" }

0 commit comments

Comments
 (0)