Skip to content

Commit

Permalink
Support for Sylius 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Jun 3, 2024
1 parent d51b6de commit 67b0b9f
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['8.0']
php-versions: ['8.2', '8.3']
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
45 changes: 26 additions & 19 deletions behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ default:
gherkin:
filters:
tags: "~@todo"
formatters:
pretty:
verbose: true
paths: false
snippets: false

extensions:
DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~
Robertfausk\Behat\PantherExtension: ~

FriendsOfBehat\MinkDebugExtension:
directory: etc/build
Expand All @@ -17,32 +24,30 @@ default:
files_path: "%paths.base%/vendor/sylius/sylius/src/Sylius/Behat/Resources/fixtures/"
base_url: "https://127.0.0.1:8080/"
default_session: symfony
javascript_session: chrome_headless
javascript_session: chromedriver
sessions:
symfony:
symfony: ~
chrome_headless:
chromedriver:
chrome:
api_url: http://127.0.0.1:9222
validate_certificate: false
chrome:
selenium2:
browser: chrome
capabilities:
browserName: chrome
browser: chrome
version: ""
marionette: null # https://github.com/Behat/MinkExtension/pull/311
chrome:
switches:
- "start-fullscreen"
- "start-maximized"
- "no-sandbox"
extra_capabilities:
chrome_headless_second_session:
chrome:
api_url: http://127.0.0.1:9222
validate_certificate: false
panther:
panther:
manager_options:
connection_timeout_in_ms: 5000
request_timeout_in_ms: 120000
chromedriver_arguments:
- --log-path=etc/build/chromedriver.log
- --verbose
capabilities:
acceptSslCerts: true
acceptInsecureCerts: true
unexpectedAlertBehaviour: accept
firefox:
selenium2:
browser: firefox
show_auto: false

FriendsOfBehat\SymfonyExtension:
Expand All @@ -55,3 +60,5 @@ default:
FriendsOfBehat\SuiteSettingsExtension:
paths:
- "features"

SyliusLabs\SuiteTagsExtension: ~
15 changes: 9 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"license": "MIT",
"require": {
"php": ">=8.0",
"php": ">=8.1",
"psr/event-dispatcher": "^1.0",
"setono/tag-bag-bundle": "^3.0",
"sylius/resource-bundle": "^1.6",
Expand All @@ -19,16 +19,19 @@
"thecodingmachine/safe": "^1.0"
},
"require-dev": {
"phpspec/phpspec": "^6.3",
"phpunit/phpunit": "^9.5",
"dbrekelmans/bdi": "^1.1",
"phpspec/phpspec": "^7.0",
"phpunit/phpunit": "^9.6 || ^10.5",
"roave/security-advisories": "dev-latest",
"robertfausk/behat-panther-extension": "^1.1",
"setono/code-quality-pack": "^2.0",
"setono/sylius-behat-pack": "^0.2",
"setono/sylius-tag-bag-plugin": "^1.3",
"sylius-labs/suite-tags-extension": "^0.2",
"sylius/mailer-bundle": "^2.0",
"sylius/sylius": "~1.12.0",
"symfony/debug-bundle": "^5.1",
"symfony/dotenv": "^5.2",
"sylius/sylius": "~1.12.0 || ~1.13.1",
"symfony/debug-bundle": "^5.1 || ^6.0",
"symfony/dotenv": "^5.4 || ^6.0",
"symfony/intl": "^5.0 || ^6.0",
"symfony/web-profiler-bundle": "^5.0 || ^6.0"
},
Expand Down
7 changes: 6 additions & 1 deletion tests/Application/config/bundles.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

return [
$bundles = [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Expand Down Expand Up @@ -61,3 +61,8 @@
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
];
if (class_exists(Sylius\Abstraction\StateMachine\SyliusStateMachineAbstractionBundle::class)) {
$bundles[Sylius\Abstraction\StateMachine\SyliusStateMachineAbstractionBundle::class] = ['all' => true];
}

return $bundles;

0 comments on commit 67b0b9f

Please sign in to comment.