diff --git a/.docker/nginx/nginx.conf b/.docker/nginx/nginx.conf
deleted file mode 100644
index 6bfbd29..0000000
--- a/.docker/nginx/nginx.conf
+++ /dev/null
@@ -1,48 +0,0 @@
-user www-data;
-worker_processes auto;
-daemon off;
-pid /run/nginx.pid;
-
-include /etc/nginx/modules-enabled/*.conf;
-
-events {
- worker_connections 1024;
-}
-
-http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
-
- server_tokens off;
-
- client_max_body_size 64m;
- sendfile on;
- tcp_nodelay on;
- tcp_nopush on;
-
- gzip_vary on;
-
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
-
- server {
- listen 80;
-
- root /app/tests/Application/public;
- index index.php;
-
- location / {
- try_files $uri /index.php$is_args$args;
- }
-
- location ~ \.php$ {
- include fastcgi_params;
-
- fastcgi_pass unix:/var/run/php8-fpm.sock;
- fastcgi_split_path_info ^(.+\.php)(/.*)$;
-
- fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
- fastcgi_param DOCUMENT_ROOT $realpath_root;
- }
- }
-}
diff --git a/.docker/php/php.ini b/.docker/php/php.ini
deleted file mode 100644
index 13f0abe..0000000
--- a/.docker/php/php.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[PHP]
-memory_limit=512M
-
-[date]
-date.timezone=${PHP_DATE_TIMEZONE}
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
deleted file mode 100644
index 92faea2..0000000
--- a/.github/CODEOWNERS
+++ /dev/null
@@ -1 +0,0 @@
-* @Sylius/core-team
diff --git a/.github/actions/roave-bc-check/Dockerfile b/.github/actions/roave-bc-check/Dockerfile
deleted file mode 100644
index 4ce17bf..0000000
--- a/.github/actions/roave-bc-check/Dockerfile
+++ /dev/null
@@ -1,12 +0,0 @@
-FROM nyholm/roave-bc-check-ga:latest
-
-RUN docker-php-ext-install -j$(nproc) exif
-
-RUN apk add --no-cache freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev libxml2-dev && \
- docker-php-ext-configure gd \
- --with-freetype \
- --with-jpeg \
- NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) && \
- docker-php-ext-install -j$(nproc) gd && \
- docker-php-ext-install -j$(nproc) soap && \
- apk del --no-cache freetype-dev libpng-dev libjpeg-turbo-dev libxml2-dev
diff --git a/.github/actions/roave-bc-check/action.yml b/.github/actions/roave-bc-check/action.yml
deleted file mode 100644
index ebb18ea..0000000
--- a/.github/actions/roave-bc-check/action.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-name: 'Roave BC Check'
-description: 'Roave BC Check'
-runs:
- using: 'docker'
- image: 'Dockerfile'
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 55638cd..4918f40 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -21,19 +21,20 @@ jobs:
strategy:
fail-fast: false
matrix:
- php: ["8.1", "8.2", "8.3"]
- symfony: ["5.4.*", "^6.0"]
- sylius: ["^1.12.0", "^1.13.1"]
- node: ["18.x"]
- mysql: ["8.0"]
+ php: ["8.4"]
+ symfony: ["^7.3"]
+ sylius: ["~2.1.0"]
+ node: ["22.x"]
+ mysql: ["8.4"]
env:
APP_ENV: test
+ BEHAT_BASE_URL: "https://127.0.0.1:8080/"
DATABASE_URL: "mysql://root:root@127.0.0.1/sylius?serverVersion=${{ matrix.mysql }}"
steps:
-
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
-
name: Setup PHP
@@ -67,20 +68,12 @@ jobs:
-
name: Install certificates
- run: symfony server:ca:install
-
- -
- name: Run Chrome Headless
- run: google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1 > /dev/null 2>&1 &
-
- -
- name: Run webserver
- run: (cd tests/Application && symfony server:start --port=8080 --dir=public --daemon)
+ run: symfony server:ca:install || true
-
name: Get Composer cache directory
id: composer-cache
- run: echo "::set-output name=dir::$(composer config cache-files-dir)"
+ run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
-
name: Cache Composer
@@ -91,16 +84,12 @@ jobs:
restore-keys: |
${{ runner.os }}-php-${{ matrix.php }}-composer-
- -
- name: Configure global composer
- run: |
- composer global config --no-plugins allow-plugins.symfony/flex true
- composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^2.2.2"
-
-
name: Restrict Symfony version
if: matrix.symfony != ''
run: |
+ composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^2.4"
+ composer global config --no-plugins allow-plugins.symfony/flex true
composer config extra.symfony.require "${{ matrix.symfony }}"
-
@@ -111,13 +100,15 @@ jobs:
-
name: Install PHP dependencies
run: composer install --no-interaction
- env:
- SYMFONY_REQUIRE: ${{ matrix.symfony }}
+
+ -
+ name: Run unit tests
+ run: vendor/bin/phpunit --colors=always --testsuite=unit
-
name: Get Yarn cache directory
id: yarn-cache
- run: echo "::set-output name=dir::$(yarn cache dir)"
+ run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
-
name: Cache Yarn
@@ -130,35 +121,39 @@ jobs:
-
name: Install JS dependencies
- run: (cd tests/Application && yarn install)
+ run: (cd vendor/sylius/test-application && yarn install)
-
name: Prepare test application database
run: |
- (cd tests/Application && bin/console doctrine:database:create -vvv)
- (cd tests/Application && bin/console doctrine:schema:create -vvv)
+ (vendor/bin/console doctrine:database:create -vvv)
+ (vendor/bin/console doctrine:schema:create -vvv)
-
name: Prepare test application assets
run: |
- (cd tests/Application && bin/console assets:install public -vvv)
- (cd tests/Application && yarn build:prod)
+ vendor/bin/console assets:install -vvv
+ (cd vendor/sylius/test-application && yarn build)
-
name: Prepare test application cache
- run: (cd tests/Application && bin/console cache:warmup -vvv)
+ run: vendor/bin/console cache:warmup -vvv
-
name: Load fixtures in test application
- run: (cd tests/Application && bin/console sylius:fixtures:load -n)
+ run: vendor/bin/console sylius:fixtures:load -n
-
name: Validate composer.json
run: composer validate --ansi --strict
+ -
+ name: Validate container
+ run: vendor/bin/console lint:container
+
-
name: Validate database schema
- run: (cd tests/Application && bin/console doctrine:schema:validate)
+ run: vendor/bin/console doctrine:schema:validate
-
name: Run PHPStan
@@ -173,8 +168,16 @@ jobs:
run: vendor/bin/phpspec run --ansi -f progress --no-interaction
-
- name: Run PHPUnit
- run: vendor/bin/phpunit --colors=always
+ name: Run Non-unit PHPUnit tests
+ run: vendor/bin/phpunit --colors=always --testsuite=non-unit
+
+ -
+ name: Run Chrome Headless
+ run: google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1 > /dev/null 2>&1 &
+
+ -
+ name: Run webserver
+ run: symfony server:start --port=8080 --daemon
-
name: Run Behat
@@ -185,16 +188,33 @@ jobs:
uses: actions/upload-artifact@v4
if: failure()
with:
- name: Behat logs
+ name: "Behat logs - ${{ matrix.sylius }}-${{ github.run_id }}-${{ github.run_number }}"
path: etc/build/
if-no-files-found: ignore
+ compression-level: 6
+ overwrite: true
roave_bc_check:
name: Roave BC Check
runs-on: ubuntu-latest
+ env:
+ PHP_VERSION: 8.4
steps:
- - uses: actions/checkout@v3
- - name: fetch tags
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- - name: Roave BC Check
- uses: ./.github/actions/roave-bc-check
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Setup PHP
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: "${{ env.PHP_VERSION }}"
+ extensions: intl
+ tools: flex,symfony
+ coverage: none
+
+ - name: Install roave/backward-compatibility-check.
+ run: composer require --dev roave/backward-compatibility-check --no-plugins
+
+ - name: Run roave/backward-compatibility-check.
+ run: vendor/bin/roave-backward-compatibility-check --format=github-actions
diff --git a/.gitignore b/.gitignore
index 29046b9..4f8e12d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,17 +1,23 @@
/vendor/
+/var/
/node_modules/
+/drivers/
/composer.lock
/etc/build/*
!/etc/build/.gitignore
-/tests/Application/yarn.lock
-
/.phpunit.result.cache
/behat.yml
/phpspec.yml
/phpunit.xml
+/compose.override.yml
+/docker-compose.override.yml
+.phpunit.result.cache
# Symfony CLI https://symfony.com/doc/current/setup/symfony_server.html#different-php-settings-per-project
/.php-version
/php.ini
+
+/tests/TestApplication/.env.local
+/tests/TestApplication/.env.*.local
diff --git a/Makefile b/Makefile
index 01d9607..0b57e25 100644
--- a/Makefile
+++ b/Makefile
@@ -1,36 +1,67 @@
-phpunit:
- vendor/bin/phpunit
+.PHONY: run
-phpspec:
- vendor/bin/phpspec run --ansi --no-interaction -f dot
+DOCKER_COMPOSE ?= docker compose
+DOCKER_USER ?= "$(shell id -u):$(shell id -g)"
+ENV ?= "dev"
-phpstan:
- vendor/bin/phpstan analyse
+init:
+ @make -s docker-compose-check
+ @if [ ! -e compose.override.yml ]; then \
+ cp compose.override.dist.yml compose.override.yml; \
+ fi
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm php composer install --no-interaction --no-scripts --no-plugins
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm nodejs
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) up -d
-psalm:
- vendor/bin/psalm
+run:
+ @make -s up
-behat-js:
- APP_ENV=test vendor/bin/behat --colors --strict --no-interaction -vvv -f progress
+debug:
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) -f compose.yml -f compose.override.yml -f compose.debug.yml up -d
-install:
- composer install --no-interaction --no-scripts
+up:
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) up -d
-backend:
- tests/Application/bin/console sylius:install --no-interaction
- tests/Application/bin/console sylius:fixtures:load default --no-interaction
+down:
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) down
-frontend:
- (cd tests/Application && yarn install --pure-lockfile)
- (cd tests/Application && GULP_ENV=prod yarn build)
+clean:
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) down -v
-behat:
- APP_ENV=test vendor/bin/behat --colors --strict --no-interaction -vvv -f progress
+php-shell:
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) exec php sh
+
+node-shell:
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm -i nodejs sh
+
+node-watch:
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm -i nodejs "npm run watch"
+
+docker-compose-check:
+ @$(DOCKER_COMPOSE) version >/dev/null 2>&1 || (echo "Please install docker compose binary or set DOCKER_COMPOSE=\"docker-compose\" for legacy binary" && exit 1)
+ @echo "You are using \"$(DOCKER_COMPOSE)\" binary"
+ @echo "Current version is \"$$($(DOCKER_COMPOSE) version)\""
-init: install backend frontend
+database-init:
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm php vendor/bin/console doctrine:database:create -n --if-not-exists
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm php vendor/bin/console doctrine:migrations:migrate -n
-ci: init phpstan psalm phpunit phpspec behat
+database-reset:
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm php vendor/bin/console doctrine:database:drop -n --force --if-exists
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm php vendor/bin/console doctrine:database:create -n
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm php vendor/bin/console doctrine:migrations:migrate -n
-integration: init phpunit behat
+load-fixtures:
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm php vendor/bin/console sylius:fixtures:load -n
-static: install phpspec phpstan psalm
+phpstan:
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm php vendor/bin/phpstan analyse -c phpstan.neon
+
+ecs:
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm php vendor/bin/ecs check src
+
+phpunit:
+ @ENV=$(ENV) DOCKER_USER=$(DOCKER_USER) $(DOCKER_COMPOSE) run --rm php vendor/bin/phpunit
+
+behat:
+ @ENV=$(ENV) DOCKER_USER=root $(DOCKER_COMPOSE) run --rm php vendor/bin/behat
diff --git a/README.md b/README.md
index 3d755cd..ff4111d 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,11 @@
-
-
+
+
Italian Invoiceable Order Plugin
+
Sylius plugin which allows Italian merchants to collect invoice data for their orders such as tax code, VAT number, SDI code, etc... as well as allowing the merchant to only apply taxes to those customers that can (and must) pay taxes in advance.
@@ -55,8 +56,9 @@
9. Run a diff of your Doctrine's migrations and then run it:
```bash
- bin/console doctrine:migrations:diff
- bin/console doctrine:migrations:migrate
+ vendor/bin/console cache:clear
+ vendor/bin/console doctrine:migrations:diff
+ vendor/bin/console doctrine:migrations:migrate
```
10. Add invoiceable address fields to your shop address form template. To do so you have to override the template:
@@ -236,33 +238,48 @@ This plugin also allows to select an invoiceable address from the address book i
To contribute you need to:
-1. Clone this repository into your development environment
+1. Clone this repository into you development environment and go to the plugin's root directory,
-2. Create `tests/Application/.env.local` and `tests/Application/.env.test.local` files to customize env vars according to your specific development environment (for example the `DATABASE_URL` variable).
-
-3. Then, from the plugin's root directory, run the following commands:
+2. Then, from the plugin's root directory, run the following commands:
```bash
- (cd tests/Application && yarn install)
- (cd tests/Application && yarn build)
- (cd tests/Application && bin/console assets:install public)
- (cd tests/Application && bin/console doctrine:database:create)
- (cd tests/Application && bin/console doctrine:schema:create)
- (cd tests/Application && bin/console sylius:fixtures:load)
- (cd tests/Application && symfony server:start -d) # Requires Symfony CLI (https://symfony.com/download)
+ composer install
```
-4. Now at https://127.0.0.1:8000/ you have a full Sylius testing application which runs the plugin.
+3. Copy `tests/TestApplication/.env` in `tests/TestApplication/.env.local` and set configuration specific for your development environment.
+
+4. Run docker (create a `compose.override.yml` if you need to customize services):
+
+ ```bash
+ docker-compose up -d
+ ```
+
+4. Then, from the plugin's root directory, run the following commands:
+
+ ```bash
+ composer test-app-init
+ ```
+
+5. Run your local server:
+
+ ```bash
+ symfony server:ca:install
+ symfony server:start -d
+ ```
+
+6. Now at http://localhost:8080/ you have a full Sylius testing application which runs the plugin
-### Running plugin tests
+### Testing
After your changes you must ensure that the tests are still passing.
First setup your test database:
```bash
-(cd tests/Application && bin/console -e test doctrine:database:create)
-(cd tests/Application && bin/console -e test doctrine:schema:create)
+ APP_ENV=test vendor/bin/console doctrine:database:create
+ APP_ENV=test vendor/bin/console doctrine:migrations:migrate -n
+ # Optionally load data fixtures
+ APP_ENV=test vendor/bin/console sylius:fixtures:load -n
```
The current CI suite runs the following tests:
@@ -299,7 +316,7 @@ The current CI suite runs the following tests:
```bash
symfony server:ca:install
- APP_ENV=test symfony server:start --port=8080 --dir=tests/Application/public --daemon
+ APP_ENV=test symfony server:start --port=8080 --dir=tests/TestApplication/public --daemon
```
4. Run Behat:
diff --git a/assets/admin/controllers.json b/assets/admin/controllers.json
new file mode 100644
index 0000000..e2ce9b5
--- /dev/null
+++ b/assets/admin/controllers.json
@@ -0,0 +1,4 @@
+{
+ "controllers": [],
+ "entrypoints": []
+}
diff --git a/tests/Application/config/api_platform/.gitignore b/assets/admin/entrypoint.js
similarity index 100%
rename from tests/Application/config/api_platform/.gitignore
rename to assets/admin/entrypoint.js
diff --git a/assets/shop/controllers.json b/assets/shop/controllers.json
new file mode 100644
index 0000000..e2ce9b5
--- /dev/null
+++ b/assets/shop/controllers.json
@@ -0,0 +1,4 @@
+{
+ "controllers": [],
+ "entrypoints": []
+}
diff --git a/tests/Application/config/secrets/dev/.gitignore b/assets/shop/entrypoint.js
similarity index 100%
rename from tests/Application/config/secrets/dev/.gitignore
rename to assets/shop/entrypoint.js
diff --git a/behat.yml.dist b/behat.yml.dist
index 5a07d2c..90cd22f 100644
--- a/behat.yml.dist
+++ b/behat.yml.dist
@@ -20,7 +20,7 @@ default:
Behat\MinkExtension:
files_path: "%paths.base%/vendor/sylius/sylius/src/Sylius/Behat/Resources/fixtures/"
- base_url: "https://127.0.0.1:8080/"
+ base_url: "%env(BEHAT_BASE_URL)%"
default_session: symfony
javascript_session: chromedriver
sessions:
@@ -49,9 +49,10 @@ default:
show_auto: false
FriendsOfBehat\SymfonyExtension:
- bootstrap: tests/Application/config/bootstrap.php
+ bootstrap: vendor/sylius/test-application/config/bootstrap.php
kernel:
- class: Tests\Webgriffe\SyliusItalianInvoiceableOrderPlugin\Application\Kernel
+ class: Sylius\TestApplication\Kernel
+ environment: test
FriendsOfBehat\VariadicExtension: ~
diff --git a/bin/create_node_symlink.php b/bin/create_node_symlink.php
deleted file mode 100644
index 10d69b4..0000000
--- a/bin/create_node_symlink.php
+++ /dev/null
@@ -1,45 +0,0 @@
- `' . NODE_MODULES_FOLDER_NAME . '` already exists as a link or folder, keeping existing as may be intentional.' . PHP_EOL;
- exit(0);
- } else {
- echo '> Invalid symlink `' . NODE_MODULES_FOLDER_NAME . '` detected, recreating...' . PHP_EOL;
- if (!@unlink(NODE_MODULES_FOLDER_NAME)) {
- echo '> Could not delete file `' . NODE_MODULES_FOLDER_NAME . '`.' . PHP_EOL;
- exit(1);
- }
- }
-}
-
-/* try to create the symlink using PHP internals... */
-$success = @symlink(PATH_TO_NODE_MODULES, NODE_MODULES_FOLDER_NAME);
-
-/* if case it has failed, but OS is Windows... */
-if (!$success && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
- /* ...then try a different approach which does not require elevated permissions and folder to exist */
- echo '> This system is running Windows, creation of links requires elevated privileges,' . PHP_EOL;
- echo '> and target path to exist. Fallback to NTFS Junction:' . PHP_EOL;
- exec(sprintf('mklink /J %s %s 2> NUL', NODE_MODULES_FOLDER_NAME, PATH_TO_NODE_MODULES), $output, $returnCode);
- $success = $returnCode === 0;
- if (!$success) {
- echo '> Failed o create the required symlink' . PHP_EOL;
- exit(2);
- }
-}
-
-$path = @readlink(NODE_MODULES_FOLDER_NAME);
-/* check if link points to the intended directory */
-if ($path && realpath($path) === realpath(PATH_TO_NODE_MODULES)) {
- echo '> Successfully created the symlink.' . PHP_EOL;
- exit(0);
-}
-
-echo '> Failed to create the symlink to `' . NODE_MODULES_FOLDER_NAME . '`.' . PHP_EOL;
-exit(3);
diff --git a/compose.yml b/compose.yml
new file mode 100644
index 0000000..bda2372
--- /dev/null
+++ b/compose.yml
@@ -0,0 +1,24 @@
+services:
+ php:
+ image: ghcr.io/sylius/sylius-php:8.4-alpine
+ mysql:
+ image: mysql:8.4
+ platform: linux/amd64
+ healthcheck:
+ test: '/usr/bin/mysql --execute "SHOW databases;"'
+ timeout: 3s
+ interval: 1s
+ retries: 10
+ environment:
+ MYSQL_ALLOW_EMPTY_PASSWORD: 1
+ cap_add:
+ - SYS_NICE # prevent "mbind: Operation not permitted" errors
+ ports:
+ - ${MYSQL_PORT:-3306}:3306
+ nginx:
+ image: ghcr.io/sylius/sylius-nginx:latest
+ depends_on:
+ - php
+ mailhog:
+ # do not use in production!
+ image: mailhog/mailhog:latest
diff --git a/composer.json b/composer.json
index c2e4a40..2e54eba 100644
--- a/composer.json
+++ b/composer.json
@@ -4,91 +4,113 @@
"description": "Sylius plugin which allows Italian merchants to collect invoice data for their orders.",
"keywords": [
"sylius",
- "sylius-plugin"
+ "sylius-plugin",
+ "test-appication"
],
"license": "MIT",
"require": {
- "php": "^8.1",
+ "php": "^8.2",
"dragonbe/vies": "^2.3.2",
"sandwich/vies-bundle": "^2.1",
- "sylius/sylius": "^1.12",
- "symfony/webpack-encore-bundle": "^1.15",
+ "sylius/sylius": "^2.0",
"webmozart/assert": "^1.9"
},
"require-dev": {
- "behat/behat": "^3.6.1",
- "behat/mink-selenium2-driver": "^1.6",
- "dbrekelmans/bdi": "^1.1",
- "dmore/behat-chrome-extension": "^1.3",
- "dmore/chrome-mink-driver": "^2.7",
- "friends-of-behat/mink": "^1.8",
- "friends-of-behat/mink-browserkit-driver": "^1.4",
- "friends-of-behat/mink-debug-extension": "^2.0.0",
- "friends-of-behat/mink-extension": "^2.4",
+ "behat/behat": "^3.16",
+ "behat/mink": "^1.13",
+ "behat/mink-selenium2-driver": "^1.7",
+ "dbrekelmans/bdi": "^1.4",
+ "dmore/behat-chrome-extension": "^1.4",
+ "dmore/chrome-mink-driver": "^2.9",
+ "friends-of-behat/mink-browserkit-driver": "^1.6",
+ "friends-of-behat/mink-debug-extension": "^2.1",
+ "friends-of-behat/mink-extension": "^2.7",
"friends-of-behat/page-object-extension": "^0.3",
- "friends-of-behat/suite-settings-extension": "^1.0",
- "friends-of-behat/symfony-extension": "^2.1",
- "friends-of-behat/variadic-extension": "^1.3",
- "phpspec/phpspec": "^7.2",
+ "friends-of-behat/suite-settings-extension": "^1.1",
+ "friends-of-behat/symfony-extension": "^2.6",
+ "friends-of-behat/variadic-extension": "^1.6",
+ "phpspec/phpspec": "^8.0",
"phpstan/extension-installer": "^1.0",
- "phpstan/phpstan": "^1.8.1",
- "phpstan/phpstan-doctrine": "1.3.16",
+ "phpstan/phpstan": "^1.12",
+ "phpstan/phpstan-doctrine": "^1.3",
"phpstan/phpstan-strict-rules": "^1.3.0",
- "phpstan/phpstan-webmozart-assert": "^1.2.0",
- "phpunit/phpunit": "^9.6 || ^10.5",
+ "phpstan/phpstan-webmozart-assert": "^1.2",
+ "phpunit/phpunit": "^10.5",
"polishsymfonycommunity/symfony-mocker-container": "^1.0",
- "rector/rector": "^0.15.0",
+ "psalm/plugin-symfony": "^5.2",
+ "rector/rector": "^1.0",
"robertfausk/behat-panther-extension": "^1.1",
- "sylius-labs/coding-standard": "^4.2",
- "sylius-labs/suite-tags-extension": "^0.2",
- "symfony/browser-kit": "^5.4 || ^6.0",
- "symfony/debug-bundle": "^5.4 || ^6.0",
- "symfony/dotenv": "^5.4 || ^6.0",
- "symfony/flex": "^2.2.2",
- "symfony/intl": "^5.4 || ^6.0",
- "symfony/web-profiler-bundle": "^5.4 || ^6.0",
- "vimeo/psalm": "^4.27"
+ "sylius-labs/coding-standard": "^4.4",
+ "sylius-labs/suite-tags-extension": "~0.2",
+ "sylius/sylius-rector": "^2.0",
+ "sylius/test-application": "^2.0.0@alpha",
+ "symfony/browser-kit": "^6.4 || ^7.1",
+ "symfony/debug-bundle": "^6.4 || ^7.1",
+ "symfony/dotenv": "^6.4 || ^7.1",
+ "symfony/http-client": "^6.4 || ^7.1",
+ "symfony/intl": "^6.4 || ^7.1",
+ "symfony/runtime": "^6.4 || ^7.1",
+ "symfony/web-profiler-bundle": "^6.4 || ^7.1",
+ "symfony/webpack-encore-bundle": "^2.2",
+ "vimeo/psalm": "^6.13"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": false,
+ "php-http/discovery": false,
"phpstan/extension-installer": true,
- "symfony/flex": true
+ "symfony/flex": true,
+ "symfony/runtime": true
}
},
"extra": {
"branch-alias": {
- "dev-master": "1.12-dev"
- }
+ "dev-master": "2.0-dev"
+ },
+ "symfony": {
+ "require": "^6.4"
+ },
+ "public-dir": "vendor/sylius/test-application/public"
},
"autoload": {
"psr-4": {
- "Webgriffe\\SyliusItalianInvoiceableOrderPlugin\\": "src/",
- "Tests\\Webgriffe\\SyliusItalianInvoiceableOrderPlugin\\Behat\\": "tests/Behat/"
+ "Webgriffe\\SyliusItalianInvoiceableOrderPlugin\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
- "App\\": "tests/Application/src"
- },
- "classmap": [
- "tests/Application/Kernel.php"
- ]
+ "Tests\\Webgriffe\\SyliusItalianInvoiceableOrderPlugin\\": ["tests/", "tests/TestApplication/src/"]
+ }
},
"scripts": {
- "post-install-cmd": [
- "php bin/create_node_symlink.php"
+ "database-reset": [
+ "vendor/bin/console doctrine:database:drop --force --if-exists",
+ "vendor/bin/console doctrine:database:create",
+ "vendor/bin/console doctrine:migration:migrate -n",
+ "vendor/bin/console sylius:fixtures:load -n"
+ ],
+ "frontend-clear": [
+ "cd vendor/sylius/test-application && yarn install && yarn build",
+ "vendor/bin/console assets:install"
],
- "post-update-cmd": [
- "php bin/create_node_symlink.php"
+ "test-app-init": [
+ "@database-reset",
+ "@frontend-clear"
],
- "post-create-project-cmd": [
- "php bin/create_node_symlink.php"
+ "ecs": "ecs check src/ tests/Behat/",
+ "phpstan": "phpstan analyse -c phpstan.neon -l max src/",
+ "phpunit": "phpunit",
+ "phpspec": "phpspec run",
+ "behat": "behat --strict -vvv --no-interaction || behat --strict -vvv --no-interaction --rerun",
+ "suite": [
+ "@ecs",
+ "@phpstan",
+ "@phpunit",
+ "@phpspec",
+ "@behat"
],
"auto-scripts": {
- "cache:clear": "symfony-cmd",
- "assets:install %PUBLIC_DIR%": "symfony-cmd",
"security-checker security:check": "script"
}
}
diff --git a/config/config.yaml b/config/config.yaml
new file mode 100644
index 0000000..239a74a
--- /dev/null
+++ b/config/config.yaml
@@ -0,0 +1,2 @@
+imports:
+ - { resource: 'twig_hooks/**/*.yaml' }
diff --git a/config/services.yaml b/config/services.yaml
new file mode 100644
index 0000000..94946d5
--- /dev/null
+++ b/config/services.yaml
@@ -0,0 +1,2 @@
+imports:
+ - { resource: "services/**/*.yaml" }
diff --git a/config/services/services.yaml b/config/services/services.yaml
new file mode 100644
index 0000000..bff1845
--- /dev/null
+++ b/config/services/services.yaml
@@ -0,0 +1,25 @@
+parameters:
+ app.taxation.eu_zone_code: ~
+
+services:
+ webgriffe_sylius_italian_invoiceable_order.form.extension.italian_invoiceable_address:
+ class: Webgriffe\SyliusItalianInvoiceableOrderPlugin\Form\Extension\ItalianInvoiceableAddressTypeExtension
+ tags:
+ - { name: form.type_extension, extended_type: Sylius\Bundle\AddressingBundle\Form\Type\AddressType }
+
+ webgriffe_sylius_italian_invoiceable_order.address_comparator:
+ class: Webgriffe\SyliusItalianInvoiceableOrderPlugin\Comparator\ItalianInvoiceableAddressComparatorDecorator
+ decorates: sylius.address_comparator
+ arguments:
+ - '@webgriffe_sylius_italian_invoiceable_order.address_comparator.inner'
+
+ app.taxation.italian_tax_calculation_strategy:
+ class: Webgriffe\SyliusItalianInvoiceableOrderPlugin\Model\ItalianTaxCalculation
+ arguments:
+ - 'italian_tax_calculation_strategy'
+ -
+ - '@sylius.taxation.order_item_units_taxes_applicator'
+ - '@sylius.taxation.order_shipment_taxes_applicator'
+ - '%app.taxation.eu_zone_code%'
+ tags:
+ - { name: sylius.taxation.calculation_strategy, type: italian_tax_calculation_strategy, label: 'Italian tax calculation' }
diff --git a/tests/Application/config/secrets/prod/.gitignore b/config/twig_hooks/.gitignore
similarity index 100%
rename from tests/Application/config/secrets/prod/.gitignore
rename to config/twig_hooks/.gitignore
diff --git a/docker-compose.yml b/docker-compose.yml
deleted file mode 100644
index a3e00ab..0000000
--- a/docker-compose.yml
+++ /dev/null
@@ -1,42 +0,0 @@
-services:
- app:
- image: sylius/standard:1.11-traditional-alpine
- environment:
- APP_ENV: "dev"
- DATABASE_URL: "mysql://root:mysql@mysql/sylius_%kernel.environment%?charset=utf8mb4"
-# DATABASE_URL: "pgsql://root:postgres@postgres/sylius_%kernel.environment%?charset=utf8" # When using postgres
- PHP_DATE_TIMEZONE: "Europe/Warsaw"
- volumes:
- - ./:/app:delegated
- - ./.docker/php/php.ini:/etc/php8/php.ini:delegated
- - ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf:delegated
- ports:
- - 80:80
- depends_on:
- - mysql
- networks:
- - sylius
-
- mysql:
- image: mysql:8.0
- platform: linux/amd64
- environment:
- MYSQL_ROOT_PASSWORD: mysql
- ports:
- - ${MYSQL_PORT:-3306}:3306
- networks:
- - sylius
-
-# postgres:
-# image: postgres:14-alpine
-# environment:
-# POSTGRES_USER: root
-# POSTGRES_PASSWORD: postgres
-# ports:
-# - ${POSTGRES_PORT:-5432}:5432
-# networks:
-# - sylius
-
-networks:
- sylius:
- driver: bridge
diff --git a/ecs.php b/ecs.php
index eee8ae6..fb0426f 100644
--- a/ecs.php
+++ b/ecs.php
@@ -6,6 +6,12 @@
use Symplify\EasyCodingStandard\Config\ECSConfig;
return static function (ECSConfig $ecsConfig): void {
+ $ecsConfig->paths([
+ __DIR__ . '/src',
+ __DIR__ . '/tests/Behat',
+ __DIR__ . '/ecs.php',
+ ]);
+
$ecsConfig->import('vendor/sylius-labs/coding-standard/ecs.php');
$ecsConfig->skip([
diff --git a/phpstan.neon b/phpstan.neon
index 8dc24b0..6ffb394 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -10,12 +10,11 @@ parameters:
- 'src/DependencyInjection/Configuration.php'
# Test dependencies
- - 'tests/Application/app/**.php'
- - 'tests/Application/src/**.php'
+ - 'tests/TestApplication/src/**.php'
ignoreErrors:
- -
- identifier: missingType.iterableValue
-
identifier: missingType.generics
+ -
+ identifier: missingType.iterableValue
- '/Parameter #1 \$configuration of method Symfony\\Component\\DependencyInjection\\Extension\\Extension::processConfiguration\(\) expects Symfony\\Component\\Config\\Definition\\ConfigurationInterface, Symfony\\Component\\Config\\Definition\\ConfigurationInterface\|null given\./'
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 91e858b..6352309 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -1,22 +1,40 @@
-
+ bootstrap="vendor/sylius/test-application/config/bootstrap.php"
+>
+
+
+
+
+
+
+
+
+
-
+
tests
-
-
-
+
+ tests/Unit
+
-
-
+
+ tests/Functional
+
-
-
-
+
+ tests/Integration
+
+
+
+ tests/Functional
+ tests/Integration
+
+
diff --git a/psalm.xml b/psalm.xml
index 3240886..5611b5f 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -5,6 +5,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
+ phpVersion="8.4"
>
@@ -12,4 +13,10 @@
+
+
+ var/cache/dev/Sylius_TestApplication_KernelDevDebugContainer.xml
+ var/cache/test/Sylius_TestApplication_KernelTestDebugContainer.xml
+
+
diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php
index f5c7eaf..8860e46 100644
--- a/src/DependencyInjection/Configuration.php
+++ b/src/DependencyInjection/Configuration.php
@@ -7,15 +7,15 @@
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
+/**
+ * @psalm-api
+ */
final class Configuration implements ConfigurationInterface
{
- /**
- * @psalm-suppress UnusedVariable
- */
+ #[\Override]
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('webgriffe_sylius_italian_invoiceable_order_plugin');
- $rootNode = $treeBuilder->getRootNode();
return $treeBuilder;
}
diff --git a/src/DependencyInjection/WebgriffeSyliusItalianInvoiceableOrderExtension.php b/src/DependencyInjection/WebgriffeSyliusItalianInvoiceableOrderExtension.php
index bbc745e..0cb99ee 100644
--- a/src/DependencyInjection/WebgriffeSyliusItalianInvoiceableOrderExtension.php
+++ b/src/DependencyInjection/WebgriffeSyliusItalianInvoiceableOrderExtension.php
@@ -4,27 +4,46 @@
namespace Webgriffe\SyliusItalianInvoiceableOrderPlugin\DependencyInjection;
-use Symfony\Component\Config\Definition\ConfigurationInterface;
+use Sylius\Bundle\CoreBundle\DependencyInjection\PrependDoctrineMigrationsTrait;
+use Sylius\Bundle\ResourceBundle\DependencyInjection\Extension\AbstractResourceExtension;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\DependencyInjection\Extension\Extension;
-use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
+use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
+use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
-final class WebgriffeSyliusItalianInvoiceableOrderExtension extends Extension
+final class WebgriffeSyliusItalianInvoiceableOrderExtension extends AbstractResourceExtension implements PrependExtensionInterface
{
- /**
- * @psalm-suppress UnusedVariable
- */
+ use PrependDoctrineMigrationsTrait;
+
+ #[\Override]
public function load(array $configs, ContainerBuilder $container): void
{
- $config = $this->processConfiguration($this->getConfiguration([], $container), $configs);
- $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
+ $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../../config'));
+
+ $loader->load('services.yaml');
+ }
+
+ #[\Override]
+ public function prepend(ContainerBuilder $container): void
+ {
+ $this->prependDoctrineMigrations($container);
+ }
- $loader->load('services.xml');
+ #[\Override]
+ protected function getMigrationsNamespace(): string
+ {
+ return 'Webgriffe\SyliusItalianInvoiceableOrderPlugin\Migrations';
+ }
+
+ #[\Override]
+ protected function getMigrationsDirectory(): string
+ {
+ return '@WebgriffeSyliusItalianInvoiceableOrderPlugin/src/Migrations';
}
- public function getConfiguration(array $config, ContainerBuilder $container): ConfigurationInterface
+ #[\Override]
+ protected function getNamespacesOfMigrationsExecutedBefore(): array
{
- return new Configuration();
+ return ['Sylius\Bundle\CoreBundle\Migrations'];
}
}
diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml
deleted file mode 100644
index d4b912e..0000000
--- a/src/Resources/config/services.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- italian_tax_calculation_strategy
-
-
-
-
- %app.taxation.eu_zone_code%
-
-
-
-
diff --git a/src/WebgriffeSyliusItalianInvoiceableOrderPlugin.php b/src/WebgriffeSyliusItalianInvoiceableOrderPlugin.php
index 628756b..36f5bd3 100644
--- a/src/WebgriffeSyliusItalianInvoiceableOrderPlugin.php
+++ b/src/WebgriffeSyliusItalianInvoiceableOrderPlugin.php
@@ -7,12 +7,16 @@
use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
use Symfony\Component\HttpKernel\Bundle\Bundle;
+/**
+ * @psalm-api
+ */
final class WebgriffeSyliusItalianInvoiceableOrderPlugin extends Bundle
{
use SyliusPluginTrait;
+ #[\Override]
public function getPath(): string
{
- return __DIR__;
+ return \dirname(__DIR__);
}
}
diff --git a/src/Resources/views/Checkout/Address/_addressBookSelectInvoiceableDataAttributes.html.twig b/templates/shop/Checkout/Address/_addressBookSelectInvoiceableDataAttributes.html.twig
similarity index 100%
rename from src/Resources/views/Checkout/Address/_addressBookSelectInvoiceableDataAttributes.html.twig
rename to templates/shop/Checkout/Address/_addressBookSelectInvoiceableDataAttributes.html.twig
diff --git a/src/Resources/views/Common/_invoiceableAddressInfo.html.twig b/templates/shop/Common/_invoiceableAddressInfo.html.twig
similarity index 100%
rename from src/Resources/views/Common/_invoiceableAddressInfo.html.twig
rename to templates/shop/Common/_invoiceableAddressInfo.html.twig
diff --git a/tests/Application/.env b/tests/Application/.env
deleted file mode 100644
index 46db94f..0000000
--- a/tests/Application/.env
+++ /dev/null
@@ -1,33 +0,0 @@
-# This file is a "template" of which env vars needs to be defined in your configuration or in an .env file
-# Set variables here that may be different on each deployment target of the app, e.g. development, staging, production.
-# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
-
-###> symfony/framework-bundle ###
-APP_ENV=dev
-APP_DEBUG=1
-APP_SECRET=EDITME
-###< symfony/framework-bundle ###
-
-###> doctrine/doctrine-bundle ###
-# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
-# For a sqlite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
-# Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls
-DATABASE_URL=mysql://root@127.0.0.1/webgriffe_sylius_italian_invoiceable_order_plugin_%kernel.environment%?serverVersion=5.7
-###< doctrine/doctrine-bundle ###
-
-###> lexik/jwt-authentication-bundle ###
-JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
-JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
-JWT_PASSPHRASE=acme_plugin_development
-###< lexik/jwt-authentication-bundle ###
-
-###> symfony/mailer ###
-MAILER_DSN=null://null
-###< symfony/mailer ###
-
-###> symfony/messenger ###
-# Choose one of the transports below
-# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
-MESSENGER_TRANSPORT_DSN=doctrine://default
-# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
-###< symfony/messenger ###
diff --git a/tests/Application/.env.test b/tests/Application/.env.test
deleted file mode 100644
index 79ffbf9..0000000
--- a/tests/Application/.env.test
+++ /dev/null
@@ -1,3 +0,0 @@
-APP_SECRET='ch4mb3r0f5ecr3ts'
-
-KERNEL_CLASS='Tests\Webgriffe\SyliusItalianInvoiceableOrderPlugin\Application\Kernel'
diff --git a/tests/Application/.eslintrc.js b/tests/Application/.eslintrc.js
deleted file mode 100644
index 92c4cee..0000000
--- a/tests/Application/.eslintrc.js
+++ /dev/null
@@ -1,20 +0,0 @@
-module.exports = {
- extends: 'airbnb-base',
- env: {
- node: true,
- },
- rules: {
- 'object-shorthand': ['error', 'always', {
- avoidQuotes: true,
- avoidExplicitReturnArrows: true,
- }],
- 'function-paren-newline': ['error', 'consistent'],
- 'max-len': ['warn', 120, 2, {
- ignoreUrls: true,
- ignoreComments: false,
- ignoreRegExpLiterals: true,
- ignoreStrings: true,
- ignoreTemplateLiterals: true,
- }],
- },
-};
diff --git a/tests/Application/.gitignore b/tests/Application/.gitignore
deleted file mode 100644
index bc600a8..0000000
--- a/tests/Application/.gitignore
+++ /dev/null
@@ -1,23 +0,0 @@
-/public/assets
-/public/build
-/public/css
-/public/js
-/public/media/*
-!/public/media/image/
-/public/media/image/*
-!/public/media/image/.gitignore
-
-/node_modules
-
-###> symfony/framework-bundle ###
-/.env.*.local
-/.env.local
-/.env.local.php
-/public/bundles
-/var/
-/vendor/
-###< symfony/framework-bundle ###
-
-###> symfony/web-server-bundle ###
-/.web-server-pid
-###< symfony/web-server-bundle ###
diff --git a/tests/Application/Kernel.php b/tests/Application/Kernel.php
deleted file mode 100644
index dd55e89..0000000
--- a/tests/Application/Kernel.php
+++ /dev/null
@@ -1,97 +0,0 @@
-getProjectDir() . '/var/cache/' . $this->environment;
- }
-
- public function getLogDir(): string
- {
- return $this->getProjectDir() . '/var/log';
- }
-
- public function registerBundles(): iterable
- {
- foreach ($this->getConfigurationDirectories() as $confDir) {
- $bundlesFile = $confDir . '/bundles.php';
- if (false === is_file($bundlesFile)) {
- continue;
- }
- yield from $this->registerBundlesFromFile($bundlesFile);
- }
- }
-
- protected function configureRoutes(RoutingConfigurator $routes): void
- {
- foreach ($this->getConfigurationDirectories() as $confDir) {
- $this->loadRoutesConfiguration($routes, $confDir);
- }
- }
-
- protected function getContainerBaseClass(): string
- {
- if ($this->isTestEnvironment() && class_exists(MockerContainer::class)) {
- return MockerContainer::class;
- }
-
- return parent::getContainerBaseClass();
- }
-
- private function isTestEnvironment(): bool
- {
- return 0 === strpos($this->getEnvironment(), 'test');
- }
-
- private function loadRoutesConfiguration(RoutingConfigurator $routes, string $confDir): void
- {
- $routes->import($confDir . '/{routes}/*' . self::CONFIG_EXTS);
- $routes->import($confDir . '/{routes}/' . $this->environment . '/**/*' . self::CONFIG_EXTS);
- $routes->import($confDir . '/{routes}' . self::CONFIG_EXTS);
- }
-
- /**
- * @return BundleInterface[]
- */
- private function registerBundlesFromFile(string $bundlesFile): iterable
- {
- $contents = require $bundlesFile;
- foreach ($contents as $class => $envs) {
- if (isset($envs['all']) || isset($envs[$this->environment])) {
- yield new $class();
- }
- }
- }
-
- /**
- * @return string[]
- */
- private function getConfigurationDirectories(): iterable
- {
- yield $this->getProjectDir() . '/config';
- $syliusConfigDir = $this->getProjectDir() . '/config/sylius/' . SyliusKernel::MAJOR_VERSION . '.' . SyliusKernel::MINOR_VERSION;
- if (is_dir($syliusConfigDir)) {
- yield $syliusConfigDir;
- }
- $symfonyConfigDir = $this->getProjectDir() . '/config/symfony/' . BaseKernel::MAJOR_VERSION . '.' . BaseKernel::MINOR_VERSION;
- if (is_dir($symfonyConfigDir)) {
- yield $symfonyConfigDir;
- }
- }
-}
diff --git a/tests/Application/assets/admin/entry.js b/tests/Application/assets/admin/entry.js
deleted file mode 100644
index 635f5ac..0000000
--- a/tests/Application/assets/admin/entry.js
+++ /dev/null
@@ -1 +0,0 @@
-import 'sylius/bundle/AdminBundle/Resources/private/entry';
diff --git a/tests/Application/assets/shop/entry.js b/tests/Application/assets/shop/entry.js
deleted file mode 100644
index aadc317..0000000
--- a/tests/Application/assets/shop/entry.js
+++ /dev/null
@@ -1 +0,0 @@
-import 'sylius/bundle/ShopBundle/Resources/private/entry';
diff --git a/tests/Application/bin/console b/tests/Application/bin/console
deleted file mode 100755
index a8fe7aa..0000000
--- a/tests/Application/bin/console
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env php
-getParameterOption(['--env', '-e'], null, true)) {
- putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
-}
-
-if ($input->hasParameterOption('--no-debug', true)) {
- putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
-}
-
-require dirname(__DIR__).'/config/bootstrap.php';
-
-if ($_SERVER['APP_DEBUG']) {
- umask(0000);
-
- if (class_exists(Debug::class)) {
- Debug::enable();
- }
-}
-
-$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
-$application = new Application($kernel);
-$application->run($input);
diff --git a/tests/Application/composer.json b/tests/Application/composer.json
deleted file mode 100644
index 326735f..0000000
--- a/tests/Application/composer.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "name": "sylius/plugin-skeleton-test-application",
- "description": "Sylius application for plugin testing purposes (composer.json needed for project dir resolving)",
- "license": "MIT"
-}
diff --git a/tests/Application/config/bootstrap.php b/tests/Application/config/bootstrap.php
deleted file mode 100644
index c9951a7..0000000
--- a/tests/Application/config/bootstrap.php
+++ /dev/null
@@ -1,27 +0,0 @@
-=1.2)
-if (is_array($env = @include dirname(__DIR__) . '/.env.local.php')) {
- $_SERVER += $env;
- $_ENV += $env;
-} elseif (!class_exists(Dotenv::class)) {
- throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
-} elseif (method_exists(Dotenv::class, 'bootEnv')) {
- (new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
-
- return;
-} else {
- // load all the .env files
- (new Dotenv(true))->loadEnv(dirname(__DIR__) . '/.env');
-}
-
-$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';
-$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];
-$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], \FILTER_VALIDATE_BOOLEAN) ? '1' : '0';
diff --git a/tests/Application/config/bundles.php b/tests/Application/config/bundles.php
deleted file mode 100644
index 5920af2..0000000
--- a/tests/Application/config/bundles.php
+++ /dev/null
@@ -1,67 +0,0 @@
- ['all' => true],
- Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
- Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
- Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
- Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
- Sylius\Bundle\OrderBundle\SyliusOrderBundle::class => ['all' => true],
- Sylius\Bundle\MoneyBundle\SyliusMoneyBundle::class => ['all' => true],
- Sylius\Bundle\CurrencyBundle\SyliusCurrencyBundle::class => ['all' => true],
- Sylius\Bundle\LocaleBundle\SyliusLocaleBundle::class => ['all' => true],
- Sylius\Bundle\ProductBundle\SyliusProductBundle::class => ['all' => true],
- Sylius\Bundle\ChannelBundle\SyliusChannelBundle::class => ['all' => true],
- Sylius\Bundle\AttributeBundle\SyliusAttributeBundle::class => ['all' => true],
- Sylius\Bundle\TaxationBundle\SyliusTaxationBundle::class => ['all' => true],
- Sylius\Bundle\ShippingBundle\SyliusShippingBundle::class => ['all' => true],
- Sylius\Bundle\PaymentBundle\SyliusPaymentBundle::class => ['all' => true],
- Sylius\Bundle\MailerBundle\SyliusMailerBundle::class => ['all' => true],
- Sylius\Bundle\PromotionBundle\SyliusPromotionBundle::class => ['all' => true],
- Sylius\Bundle\AddressingBundle\SyliusAddressingBundle::class => ['all' => true],
- Sylius\Bundle\InventoryBundle\SyliusInventoryBundle::class => ['all' => true],
- Sylius\Bundle\TaxonomyBundle\SyliusTaxonomyBundle::class => ['all' => true],
- Sylius\Bundle\UserBundle\SyliusUserBundle::class => ['all' => true],
- Sylius\Bundle\CustomerBundle\SyliusCustomerBundle::class => ['all' => true],
- Sylius\Bundle\UiBundle\SyliusUiBundle::class => ['all' => true],
- Sylius\Bundle\ReviewBundle\SyliusReviewBundle::class => ['all' => true],
- Sylius\Bundle\CoreBundle\SyliusCoreBundle::class => ['all' => true],
- Sylius\Bundle\ResourceBundle\SyliusResourceBundle::class => ['all' => true],
- Sylius\Bundle\GridBundle\SyliusGridBundle::class => ['all' => true],
- winzou\Bundle\StateMachineBundle\winzouStateMachineBundle::class => ['all' => true],
- Sonata\BlockBundle\SonataBlockBundle::class => ['all' => true],
- Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle::class => ['all' => true],
- JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true],
- FOS\RestBundle\FOSRestBundle::class => ['all' => true],
- Knp\Bundle\GaufretteBundle\KnpGaufretteBundle::class => ['all' => true],
- Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true],
- Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
- Payum\Bundle\PayumBundle\PayumBundle::class => ['all' => true],
- Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true],
- Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
- Sylius\Bundle\FixturesBundle\SyliusFixturesBundle::class => ['all' => true],
- Sylius\Bundle\PayumBundle\SyliusPayumBundle::class => ['all' => true],
- Sylius\Bundle\ThemeBundle\SyliusThemeBundle::class => ['all' => true],
- Sylius\Bundle\AdminBundle\SyliusAdminBundle::class => ['all' => true],
- Sylius\Bundle\ShopBundle\SyliusShopBundle::class => ['all' => true],
- Sandwich\ViesBundle\SandwichViesBundle::class => ['all' => true],
- Webgriffe\SyliusItalianInvoiceableOrderPlugin\WebgriffeSyliusItalianInvoiceableOrderPlugin::class => ['all' => true],
- Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true],
- Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true],
- FriendsOfBehat\SymfonyExtension\Bundle\FriendsOfBehatSymfonyExtensionBundle::class => ['test' => true, 'test_cached' => true],
- Sylius\Behat\Application\SyliusTestPlugin\SyliusTestPlugin::class => ['test' => true, 'test_cached' => true],
- ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
- Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true],
- Sylius\Bundle\ApiBundle\SyliusApiBundle::class => ['all' => true],
- SyliusLabs\DoctrineMigrationsExtraBundle\SyliusLabsDoctrineMigrationsExtraBundle::class => ['all' => true],
- BabDev\PagerfantaBundle\BabDevPagerfantaBundle::class => ['all' => true],
- SyliusLabs\Polyfill\Symfony\Security\Bundle\SyliusLabsPolyfillSymfonySecurityBundle::class => ['all' => true],
- Sylius\Calendar\SyliusCalendarBundle::class => ['all' => true],
- 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;
diff --git a/tests/Application/config/jwt/private.pem b/tests/Application/config/jwt/private.pem
deleted file mode 100644
index 2bcf023..0000000
--- a/tests/Application/config/jwt/private.pem
+++ /dev/null
@@ -1,54 +0,0 @@
------BEGIN ENCRYPTED PRIVATE KEY-----
-MIIJrTBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BBQwwHAQIDbthk+aF5EACAggA
-MAwGCCqGSIb3DQIJBQAwHQYJYIZIAWUDBAEqBBA3DYfh2mXByUxFNke/Wf5SBIIJ
-UBckIgXeXBWPLQAAq07pN8uNFMUcUirFuEvbmxVe1PupCCAqriNxi1DqeSu/M7c1
-h66y0BqKZu/0G9SVTg63iCKDEiRAM3hLyD2CsjYg8h2LAaqQ9dFYGV0cHRhCXagZ
-Sdt9YTfn2rarRbxauMSt0z9zwCaiUrBU4JwSM3g+tD7W0lxAm9TeaqBZek5DIX+j
-3Gom5tPYQe8jvfGMGdMPuanoEwH4WbWzGcqypWriy4JwaggwKCQ4ituWfa9kqMMC
-8HRmBBDg0gtafmQP910RZh18JL2ewF5Pl7GDsLtOj5gNLNuAiQxDCcYRnD4/Cdsl
-bH91btmGX1nUVIFViUTW93eBsjBgdgqOMRVxUKkSSX6CmIZWlE3AazgwSbvOvNrN
-JGa8X21UwfuS/JHLmfRmgdti0YxRjJkBYLPpcd3ILsi+MMhSHy0uycAM/dB80Q1B
-vkW1UXGbCw/PzA5yHrzULzAl69E3Tt5nTVMIIcBGxw2rf+ej+AVjsuOl7etwecdC
-gnA90ViNlGOACLVnhsjd4WVF9Oircosf0UYoblwcT6gw1GSVF9pWuu7k5hy/7Pt/
-o1BvonUgz/4VHG+K58qvtnlto+JE0XWzPvukNUyggtekTLyoQCI3ZKge6ui3qLax
-N6whHpzFnFVF3GJAisTk5naHFawHNvH7t85pmc+UnjNUUmyl9RStl9LMYDSBKNlR
-LzPlJK27E5SLhhyJCni4+UYjH6PdlJuKXJ0365fufJ+5ajHRatwt039xLnK0W+oa
-L35NxCuXrn8YxOgJIomt7IrkV3AuxoWxcx4lRFoM0WCdn9SWZVtfFFiyX/Xr1qDg
-dUysw3/bePEkOKr5JWx09hT0OKDpkwLFo2Ljtvjln4EMXYEvvVqFciKw0kqF73Dw
-NyoSubwR4qs6FQclKW1TAP6UW4B6ffq1iagKOCTZ5bBtsPBZk8UGCJb57q4fUj4P
-nJy0hnSdlOH4Am+US4HF4ayOGuaV1Be1taurdJnt5cNnUYRah0wg4nG+wVdG5HJk
-f4dJ4nih9d6WA/8LfxdpB7NCwdR+KK6lky+GgLSdhmIT9lzjj2GDsU4lBf29TkBn
-lyt98/LWGrgCQgZAQ/obxLT8CZtY+tNejGoMppY+ub8DIaLBFID+fcz13kgA9x7a
-TeVB8RPok+S3yHXP9a4WSFe9DGjjN+m7EnRtte7MEjyMoekXVnT04gNbTMoGAjNb
-lrR4g3ICygZtsoGSB2VEu7o3azAspXNBMOuJfRCuC0LDXcjH3TbvjX0da5wHBoK9
-clRxu+CDo9A849HMkmSje8wED7ysZnkvSX0OdPjXahVd4t1tDRI6jSlzFo9fGcjp
-S8Ikm9iMrHXaWcDdtcq4C63CjSynIBr4mNIxe/f2e9nynm3AIv+aOan891RWHqrd
-DdpSSPShtzATI9PbB+b+S0Gw58Y8fpO7yoZ87VW1BMpadmFZ87YY78jdB7BwInNI
-JqtnivinM6qCsvbdMoGinUyL6PUcfQGiEAibouKr3zNRDC4aesBZZmj7w0dnf+HK
-YC905aR0cddlc6DBo/ed3o9krMcZ6oY/vruemPTc5G7Cg3t4H3mInRgURw22X1wo
-FsioU1yOdkK+MYxvmGsQvQuSJhp7h1Uz37t/olkPRafZgy2nEtw6DQO0Dm4UfSsD
-nysq6dn1WeZPkOipGBRgQmY1FTRzwPoCxi7+/EuHhD8hr962rHOglSuNqPG89J8r
-wdbTDr8kgXj2A9p+jI3TVKEX+h6FEhrCHW9SHUqATOZ7RiNL6hKld9j0U4D9gQwZ
-dflA0TxpVsHXm7pd1idkr46jIFgw7HA89Erm0Ty7RolfHkqlRca805AVmsKkviIz
-sbF5uv4WzIE3ViO8P1KMUhCyElm72mpyNTXBhkxkup9hJ4fQieaN6pET6dQ2xyjs
-SBIvQoXI0JQKpespcyAdoh88ULQjRUXEOaNFfN7q+itTcocwmPZfzW2nXORJT2p8
-SXLqSE73nYZdqzSYFq1hLcnlubJ7yPBYYG1fI0IydjSGKfnjtB0DReR32OToRZ7m
-laduZ8O+IaBUY4Sp6QdYcVbGGpG/wsPmTQyScc/O2bfSI7AiPnL9EnwebI9sPSWQ
-R0t0QMXZOSSqNY6jkYjsOCxeekRIdY6havo2Y52Ywti0QNrkT4BQ+175VVTmRMdy
-LNaMFeEq6ehSEdaHaozvjHvP50HQT43tCK+RJiL+Gf9FqawoQRt693yO5LFbQsuw
-QsUSMi41txpINMa+HEc2K5FvGoPr7FmajLK7X2fr+3c/yZ4fahoMKEAVFWl5kRYx
-Fe1smlw1Vxl/qNQ32LFWsBIK+XnYBteYmlpVyYrTgXyjnp1rK2zz0118DPFuYiAP
-O0r6nnBz0NbwnSKb7S4CjxBKDvDbWTzP35Q5L/vySnO2zRbM64Gw7sjeLiJittWS
-gQfbFpEk9k8KVndKM4H50Jp0WznmYpm1Tman8hUOiCvmq0qdI3bJ5Bnj0K+q2zFV
-+noGpMFdq1+8WaUFLQFGCPM+yJgCqDgT1RAgfsGcomckGcmenDtHaTbcSFabEdpM
-Tsa2qLdg/Kju+7JyGrkmobXl/azuyjYTHfRvSZrvO5WUDFzhChrJpIL4nA3ZGRlS
-gvy+OzyyBh4sRyHwLItwUwE81aya3W4llAkhQ7OycmqniJgjtJzLwnxv2RQsB8bF
-pyoqQdKVxkqHdbUFeh9igI4ffRAK+8xDER5J+RUoZ4mO8qJebxar54XTb6I/Lepc
-g8ITX8bJ/GH+M6JdP7tLCikDTSGS+i1ReMQXE5XuEajYOVbzQdyWU5jleZIx0f6X
-mTa4WvMEGNyNxKZZXsy9FAaBkZqrNzEv8k0uFgFMNWQcMMtiqbei86yACdqe+jiW
-HqHv8wfoBHR+eIARub2itOJ/cI+oKv96d4it4FqQ9Lml8RUFFZj7Hrd6EjDb6Nq4
-P9ti7eku/xZvS0saBNChvv44GhP6FZJS0i/gidVffLna7Wua98tPZEAXp57k+XUL
-PzsRJ4a+hFuQjkyXFoz/v8YuUdyCFUSVVr9ArVu0v4+4euFWpQLav5sXv0Gh9X58
-Ek1KIf7Z/tZAJnSjTjFuSbDX/AoTMTxpRBKKnFW6zY0Nw2pjTVMtTVDkv9xkBpBK
-wod7FPD5f0T7y9YOARVZnBxVRSkkcYpEJFy5pLNeadg9
------END ENCRYPTED PRIVATE KEY-----
diff --git a/tests/Application/config/jwt/public.pem b/tests/Application/config/jwt/public.pem
deleted file mode 100644
index cb4e13d..0000000
--- a/tests/Application/config/jwt/public.pem
+++ /dev/null
@@ -1,14 +0,0 @@
------BEGIN PUBLIC KEY-----
-MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA6QkmF/Xi5nAYb8Kzr7qC
-d63V2K+d/nCXbpDUKKDPJAqOtTlMoQSuJRLNnhhp7z1i/Cp4Bhifr20Pu2dq8JYg
-6pRT4ctqvYb/MXxAaPZc3EcBC0S6AhgKO/fDvR3LcqYqGJmQQOXZvxTsgqongdvV
-4XbqFBMMgngyayoBk0VKTaI/s+LQhIce+1QaxbAI0+/zbR0hZ1hWT73orJi3do+1
-TBzQol+V7WGa8LlJfmgM56qO3BmVkeTDMBc27pGp6g3+Oufk/l29jEGJlUT9yu7Q
-BRhaQTWNVASa2aD+AKjVBzJh53O2zD8slAbjF1M9U7bbWN28Sv+xC/dUz0q9HnPu
-RsY2tnwryqTyYn/Hf2xyP3/KvjJ6oslAwemu5JirdJkO7KVQAthWG42gLuhZg3ks
-cSZhCLZH7nO2UDsf+2ZZgdbhpYZwR4gDRfNt7GKWXnWZOz9Uw1yVCPgylyZRZwg8
-l0y9aABdj3379I22icrwpMZbAgkyxNSV6UNJuxZksLUoP3i9OvXYgPYU9E4tU/Ul
-Dm/T1rGSReGoPkU1YQnI50bq7p1byIoUu2scTflvpTVI5a7zULkS1tg60xk7vBRC
-aBc7nr4UEtA235N6uLtcGxH11WBMwsKX69sSU0sQdC4Sk25zXM2gc8R1XV9K3qz2
-wQorQRlCwrkG44VRDgbFH+8CAwEAAQ==
------END PUBLIC KEY-----
diff --git a/tests/Application/config/packages/_sylius.yaml b/tests/Application/config/packages/_sylius.yaml
deleted file mode 100644
index 2b2ce07..0000000
--- a/tests/Application/config/packages/_sylius.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-imports:
- - { resource: "@SyliusCoreBundle/Resources/config/app/config.yml" }
-
- - { resource: "@SyliusAdminBundle/Resources/config/app/config.yml" }
-
- - { resource: "@SyliusShopBundle/Resources/config/app/config.yml" }
-
- - { resource: "@SyliusApiBundle/Resources/config/app/config.yaml" }
-
-parameters:
- sylius_core.public_dir: '%kernel.project_dir%/public'
-
-sylius_shop:
- product_grid:
- include_all_descendants: true
-
-sylius_api:
- enabled: true
-
-sylius_addressing:
- resources:
- address:
- classes:
- model: App\Entity\Addressing\Address
-
-sylius_order:
- resources:
- order:
- classes:
- model: App\Entity\Order\Order
diff --git a/tests/Application/config/packages/api_platform.yaml b/tests/Application/config/packages/api_platform.yaml
deleted file mode 100644
index b428304..0000000
--- a/tests/Application/config/packages/api_platform.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-api_platform:
- mapping:
- paths:
- - '%kernel.project_dir%/../../vendor/sylius/sylius/src/Sylius/Bundle/ApiBundle/Resources/config/api_resources'
- - '%kernel.project_dir%/config/api_platform'
- - '%kernel.project_dir%/src/Entity'
- patch_formats:
- json: ['application/merge-patch+json']
- swagger:
- versions: [3]
diff --git a/tests/Application/config/packages/assets.yaml b/tests/Application/config/packages/assets.yaml
deleted file mode 100644
index 2468901..0000000
--- a/tests/Application/config/packages/assets.yaml
+++ /dev/null
@@ -1,7 +0,0 @@
-framework:
- assets:
- packages:
- shop:
- json_manifest_path: '%kernel.project_dir%/public/build/shop/manifest.json'
- admin:
- json_manifest_path: '%kernel.project_dir%/public/build/admin/manifest.json'
diff --git a/tests/Application/config/packages/dev/framework.yaml b/tests/Application/config/packages/dev/framework.yaml
deleted file mode 100644
index 4b116de..0000000
--- a/tests/Application/config/packages/dev/framework.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-framework:
- profiler: { only_exceptions: false }
diff --git a/tests/Application/config/packages/dev/jms_serializer.yaml b/tests/Application/config/packages/dev/jms_serializer.yaml
deleted file mode 100644
index 2f32a9b..0000000
--- a/tests/Application/config/packages/dev/jms_serializer.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-jms_serializer:
- visitors:
- json_serialization:
- options:
- - JSON_PRETTY_PRINT
- - JSON_UNESCAPED_SLASHES
- - JSON_PRESERVE_ZERO_FRACTION
- json_deserialization:
- options:
- - JSON_PRETTY_PRINT
- - JSON_UNESCAPED_SLASHES
- - JSON_PRESERVE_ZERO_FRACTION
diff --git a/tests/Application/config/packages/dev/monolog.yaml b/tests/Application/config/packages/dev/monolog.yaml
deleted file mode 100644
index da2b092..0000000
--- a/tests/Application/config/packages/dev/monolog.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-monolog:
- handlers:
- main:
- type: stream
- path: "%kernel.logs_dir%/%kernel.environment%.log"
- level: debug
- firephp:
- type: firephp
- level: info
diff --git a/tests/Application/config/packages/dev/routing.yaml b/tests/Application/config/packages/dev/routing.yaml
deleted file mode 100644
index 4116679..0000000
--- a/tests/Application/config/packages/dev/routing.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-framework:
- router:
- strict_requirements: true
diff --git a/tests/Application/config/packages/dev/web_profiler.yaml b/tests/Application/config/packages/dev/web_profiler.yaml
deleted file mode 100644
index 1f1cb2b..0000000
--- a/tests/Application/config/packages/dev/web_profiler.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-web_profiler:
- toolbar: true
- intercept_redirects: false
diff --git a/tests/Application/config/packages/doctrine.yaml b/tests/Application/config/packages/doctrine.yaml
deleted file mode 100644
index 040ee06..0000000
--- a/tests/Application/config/packages/doctrine.yaml
+++ /dev/null
@@ -1,22 +0,0 @@
-parameters:
- # Adds a fallback DATABASE_URL if the env var is not set.
- # This allows you to run cache:warmup even if your
- # environment variables are not available yet.
- # You should not need to change this value.
- env(DATABASE_URL): ''
-
-doctrine:
- dbal:
- driver: 'pdo_mysql'
- server_version: '5.7'
- charset: UTF8
-
- url: '%env(resolve:DATABASE_URL)%'
- orm:
- mappings:
- App:
- is_bundle: false
- type: annotation
- dir: '%kernel.project_dir%/src/Entity'
- prefix: 'App'
- alias: App
diff --git a/tests/Application/config/packages/doctrine_migrations.yaml b/tests/Application/config/packages/doctrine_migrations.yaml
deleted file mode 100644
index cdbc01a..0000000
--- a/tests/Application/config/packages/doctrine_migrations.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-doctrine_migrations:
- storage:
- table_storage:
- table_name: sylius_migrations
diff --git a/tests/Application/config/packages/fos_rest.yaml b/tests/Application/config/packages/fos_rest.yaml
deleted file mode 100644
index eaebb27..0000000
--- a/tests/Application/config/packages/fos_rest.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-fos_rest:
- exception: true
- view:
- formats:
- json: true
- xml: true
- empty_content: 204
- format_listener:
- rules:
- - { path: '^/api/v1/.*', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true }
- - { path: '^/', stop: true }
diff --git a/tests/Application/config/packages/framework.yaml b/tests/Application/config/packages/framework.yaml
deleted file mode 100644
index 8be076b..0000000
--- a/tests/Application/config/packages/framework.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-framework:
- secret: '%env(APP_SECRET)%'
- form: true
- csrf_protection: true
- session:
- handler_id: ~
- serializer:
- mapping:
- paths: [ '%kernel.project_dir%/config/serialization' ]
diff --git a/tests/Application/config/packages/jms_serializer.yaml b/tests/Application/config/packages/jms_serializer.yaml
deleted file mode 100644
index ed7bc61..0000000
--- a/tests/Application/config/packages/jms_serializer.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-jms_serializer:
- visitors:
- xml_serialization:
- format_output: '%kernel.debug%'
diff --git a/tests/Application/config/packages/lexik_jwt_authentication.yaml b/tests/Application/config/packages/lexik_jwt_authentication.yaml
deleted file mode 100644
index edfb69d..0000000
--- a/tests/Application/config/packages/lexik_jwt_authentication.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-lexik_jwt_authentication:
- secret_key: '%env(resolve:JWT_SECRET_KEY)%'
- public_key: '%env(resolve:JWT_PUBLIC_KEY)%'
- pass_phrase: '%env(JWT_PASSPHRASE)%'
diff --git a/tests/Application/config/packages/liip_imagine.yaml b/tests/Application/config/packages/liip_imagine.yaml
deleted file mode 100644
index bb2e7ce..0000000
--- a/tests/Application/config/packages/liip_imagine.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-liip_imagine:
- resolvers:
- default:
- web_path:
- web_root: "%kernel.project_dir%/public"
- cache_prefix: "media/cache"
diff --git a/tests/Application/config/packages/mailer.yaml b/tests/Application/config/packages/mailer.yaml
deleted file mode 100644
index 56a650d..0000000
--- a/tests/Application/config/packages/mailer.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-framework:
- mailer:
- dsn: '%env(MAILER_DSN)%'
diff --git a/tests/Application/config/packages/prod/doctrine.yaml b/tests/Application/config/packages/prod/doctrine.yaml
deleted file mode 100644
index 2f16f0f..0000000
--- a/tests/Application/config/packages/prod/doctrine.yaml
+++ /dev/null
@@ -1,31 +0,0 @@
-doctrine:
- orm:
- metadata_cache_driver:
- type: service
- id: doctrine.system_cache_provider
- query_cache_driver:
- type: service
- id: doctrine.system_cache_provider
- result_cache_driver:
- type: service
- id: doctrine.result_cache_provider
-
-services:
- doctrine.result_cache_provider:
- class: Symfony\Component\Cache\DoctrineProvider
- public: false
- arguments:
- - '@doctrine.result_cache_pool'
- doctrine.system_cache_provider:
- class: Symfony\Component\Cache\DoctrineProvider
- public: false
- arguments:
- - '@doctrine.system_cache_pool'
-
-framework:
- cache:
- pools:
- doctrine.result_cache_pool:
- adapter: cache.app
- doctrine.system_cache_pool:
- adapter: cache.system
diff --git a/tests/Application/config/packages/prod/jms_serializer.yaml b/tests/Application/config/packages/prod/jms_serializer.yaml
deleted file mode 100644
index c288182..0000000
--- a/tests/Application/config/packages/prod/jms_serializer.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-jms_serializer:
- visitors:
- json_serialization:
- options:
- - JSON_UNESCAPED_SLASHES
- - JSON_PRESERVE_ZERO_FRACTION
- json_deserialization:
- options:
- - JSON_UNESCAPED_SLASHES
- - JSON_PRESERVE_ZERO_FRACTION
diff --git a/tests/Application/config/packages/prod/monolog.yaml b/tests/Application/config/packages/prod/monolog.yaml
deleted file mode 100644
index 6461211..0000000
--- a/tests/Application/config/packages/prod/monolog.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-monolog:
- handlers:
- main:
- type: fingers_crossed
- action_level: error
- handler: nested
- nested:
- type: stream
- path: "%kernel.logs_dir%/%kernel.environment%.log"
- level: debug
diff --git a/tests/Application/config/packages/routing.yaml b/tests/Application/config/packages/routing.yaml
deleted file mode 100644
index 368bc7f..0000000
--- a/tests/Application/config/packages/routing.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-framework:
- router:
- strict_requirements: ~
diff --git a/tests/Application/config/packages/security.yaml b/tests/Application/config/packages/security.yaml
deleted file mode 100644
index 4ed342f..0000000
--- a/tests/Application/config/packages/security.yaml
+++ /dev/null
@@ -1,124 +0,0 @@
-security:
- enable_authenticator_manager: true
- providers:
- sylius_admin_user_provider:
- id: sylius.admin_user_provider.email_or_name_based
- sylius_api_admin_user_provider:
- id: sylius.admin_user_provider.email_or_name_based
- sylius_shop_user_provider:
- id: sylius.shop_user_provider.email_or_name_based
- sylius_api_shop_user_provider:
- id: sylius.shop_user_provider.email_or_name_based
-
- password_hashers:
- Sylius\Component\User\Model\UserInterface: argon2i
- firewalls:
- admin:
- switch_user: true
- context: admin
- pattern: "%sylius.security.admin_regex%"
- provider: sylius_admin_user_provider
- form_login:
- provider: sylius_admin_user_provider
- login_path: sylius_admin_login
- check_path: sylius_admin_login_check
- failure_path: sylius_admin_login
- default_target_path: sylius_admin_dashboard
- use_forward: false
- use_referer: true
- enable_csrf: true
- csrf_parameter: _csrf_admin_security_token
- csrf_token_id: admin_authenticate
- remember_me:
- secret: "%env(APP_SECRET)%"
- path: "/%sylius_admin.path_name%"
- name: APP_ADMIN_REMEMBER_ME
- lifetime: 31536000
- remember_me_parameter: _remember_me
- logout:
- path: sylius_admin_logout
- target: sylius_admin_login
-
- new_api_admin_user:
- pattern: "%sylius.security.new_api_admin_regex%/.*"
- provider: sylius_api_admin_user_provider
- stateless: true
- entry_point: jwt
- json_login:
- check_path: "%sylius.security.new_api_admin_route%/authentication-token"
- username_path: email
- password_path: password
- success_handler: lexik_jwt_authentication.handler.authentication_success
- failure_handler: lexik_jwt_authentication.handler.authentication_failure
- jwt: true
-
- new_api_shop_user:
- pattern: "%sylius.security.new_api_shop_regex%/.*"
- provider: sylius_api_shop_user_provider
- stateless: true
- entry_point: jwt
- json_login:
- check_path: "%sylius.security.new_api_shop_route%/authentication-token"
- username_path: email
- password_path: password
- success_handler: lexik_jwt_authentication.handler.authentication_success
- failure_handler: lexik_jwt_authentication.handler.authentication_failure
- jwt: true
-
- shop:
- switch_user: { role: ROLE_ALLOWED_TO_SWITCH }
- context: shop
- pattern: "%sylius.security.shop_regex%"
- provider: sylius_shop_user_provider
- form_login:
- success_handler: sylius.authentication.success_handler
- failure_handler: sylius.authentication.failure_handler
- provider: sylius_shop_user_provider
- login_path: sylius_shop_login
- check_path: sylius_shop_login_check
- failure_path: sylius_shop_login
- default_target_path: sylius_shop_homepage
- use_forward: false
- use_referer: true
- enable_csrf: true
- csrf_parameter: _csrf_shop_security_token
- csrf_token_id: shop_authenticate
- remember_me:
- secret: "%env(APP_SECRET)%"
- name: APP_SHOP_REMEMBER_ME
- lifetime: 31536000
- remember_me_parameter: _remember_me
- logout:
- path: sylius_shop_logout
- target: sylius_shop_homepage
- invalidate_session: false
-
- dev:
- pattern: ^/(_(profiler|wdt)|css|images|js)/
- security: false
-
- image_resolver:
- pattern: ^/media/cache/resolve
- security: false
-
- access_control:
- - { path: "%sylius.security.admin_regex%/_partial", role: PUBLIC_ACCESS, ips: [127.0.0.1, ::1] }
- - { path: "%sylius.security.admin_regex%/_partial", role: ROLE_NO_ACCESS }
- - { path: "%sylius.security.shop_regex%/_partial", role: PUBLIC_ACCESS, ips: [127.0.0.1, ::1] }
- - { path: "%sylius.security.shop_regex%/_partial", role: ROLE_NO_ACCESS }
-
- - { path: "%sylius.security.admin_regex%/login", role: PUBLIC_ACCESS }
- - { path: "%sylius.security.shop_regex%/login", role: PUBLIC_ACCESS }
-
- - { path: "%sylius.security.shop_regex%/register", role: PUBLIC_ACCESS }
- - { path: "%sylius.security.shop_regex%/verify", role: PUBLIC_ACCESS }
-
- - { path: "%sylius.security.admin_regex%", role: ROLE_ADMINISTRATION_ACCESS }
- - { path: "%sylius.security.shop_regex%/account", role: ROLE_USER }
-
- - { path: "%sylius.security.new_api_admin_route%/reset-password-requests", role: PUBLIC_ACCESS }
- - { path: "%sylius.security.new_api_admin_regex%/.*", role: ROLE_API_ACCESS }
- - { path: "%sylius.security.new_api_admin_route%/authentication-token", role: PUBLIC_ACCESS }
- - { path: "%sylius.security.new_api_user_account_regex%/.*", role: ROLE_USER }
- - { path: "%sylius.security.new_api_shop_route%/authentication-token", role: PUBLIC_ACCESS }
- - { path: "%sylius.security.new_api_shop_regex%/.*", role: PUBLIC_ACCESS }
diff --git a/tests/Application/config/packages/staging/monolog.yaml b/tests/Application/config/packages/staging/monolog.yaml
deleted file mode 100644
index 6461211..0000000
--- a/tests/Application/config/packages/staging/monolog.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-monolog:
- handlers:
- main:
- type: fingers_crossed
- action_level: error
- handler: nested
- nested:
- type: stream
- path: "%kernel.logs_dir%/%kernel.environment%.log"
- level: debug
diff --git a/tests/Application/config/packages/stof_doctrine_extensions.yaml b/tests/Application/config/packages/stof_doctrine_extensions.yaml
deleted file mode 100644
index 7770f74..0000000
--- a/tests/Application/config/packages/stof_doctrine_extensions.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-# Read the documentation: https://symfony.com/doc/current/bundles/StofDoctrineExtensionsBundle/index.html
-# See the official DoctrineExtensions documentation for more details: https://github.com/Atlantic18/DoctrineExtensions/tree/master/doc/
-stof_doctrine_extensions:
- default_locale: '%locale%'
diff --git a/tests/Application/config/packages/test/framework.yaml b/tests/Application/config/packages/test/framework.yaml
deleted file mode 100644
index fc1d3c1..0000000
--- a/tests/Application/config/packages/test/framework.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-framework:
- test: ~
- session:
- storage_factory_id: session.storage.factory.mock_file
diff --git a/tests/Application/config/packages/test/mailer.yaml b/tests/Application/config/packages/test/mailer.yaml
deleted file mode 100644
index 52610d6..0000000
--- a/tests/Application/config/packages/test/mailer.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-framework:
- cache:
- pools:
- test.mailer_pool:
- adapter: cache.adapter.filesystem
diff --git a/tests/Application/config/packages/test/monolog.yaml b/tests/Application/config/packages/test/monolog.yaml
deleted file mode 100644
index 7e2b9e3..0000000
--- a/tests/Application/config/packages/test/monolog.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-monolog:
- handlers:
- main:
- type: stream
- path: "%kernel.logs_dir%/%kernel.environment%.log"
- level: error
diff --git a/tests/Application/config/packages/test/security.yaml b/tests/Application/config/packages/test/security.yaml
deleted file mode 100644
index 4071d31..0000000
--- a/tests/Application/config/packages/test/security.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-security:
- password_hashers:
- Sylius\Component\User\Model\UserInterface:
- algorithm: argon2i
- time_cost: 3
- memory_cost: 10
diff --git a/tests/Application/config/packages/test/sylius_theme.yaml b/tests/Application/config/packages/test/sylius_theme.yaml
deleted file mode 100644
index 4d34199..0000000
--- a/tests/Application/config/packages/test/sylius_theme.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-sylius_theme:
- sources:
- test: ~
diff --git a/tests/Application/config/packages/test/sylius_uploader.yaml b/tests/Application/config/packages/test/sylius_uploader.yaml
deleted file mode 100644
index ab9d6ca..0000000
--- a/tests/Application/config/packages/test/sylius_uploader.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-services:
- Sylius\Component\Core\Generator\ImagePathGeneratorInterface:
- class: Sylius\Behat\Service\Generator\UploadedImagePathGenerator
diff --git a/tests/Application/config/packages/test/web_profiler.yaml b/tests/Application/config/packages/test/web_profiler.yaml
deleted file mode 100644
index 03752de..0000000
--- a/tests/Application/config/packages/test/web_profiler.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-web_profiler:
- toolbar: false
- intercept_redirects: false
-
-framework:
- profiler: { collect: false }
diff --git a/tests/Application/config/packages/test_cached/doctrine.yaml b/tests/Application/config/packages/test_cached/doctrine.yaml
deleted file mode 100644
index 4952860..0000000
--- a/tests/Application/config/packages/test_cached/doctrine.yaml
+++ /dev/null
@@ -1,16 +0,0 @@
-doctrine:
- orm:
- entity_managers:
- default:
- result_cache_driver:
- type: memcached
- host: localhost
- port: 11211
- query_cache_driver:
- type: memcached
- host: localhost
- port: 11211
- metadata_cache_driver:
- type: memcached
- host: localhost
- port: 11211
diff --git a/tests/Application/config/packages/test_cached/fos_rest.yaml b/tests/Application/config/packages/test_cached/fos_rest.yaml
deleted file mode 100644
index 2b4189d..0000000
--- a/tests/Application/config/packages/test_cached/fos_rest.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-fos_rest:
- exception:
- debug: true
diff --git a/tests/Application/config/packages/test_cached/framework.yaml b/tests/Application/config/packages/test_cached/framework.yaml
deleted file mode 100644
index e9dd6ee..0000000
--- a/tests/Application/config/packages/test_cached/framework.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-imports:
- - { resource: ../test/framework.yaml }
diff --git a/tests/Application/config/packages/test_cached/mailer.yaml b/tests/Application/config/packages/test_cached/mailer.yaml
deleted file mode 100644
index 16f3170..0000000
--- a/tests/Application/config/packages/test_cached/mailer.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-imports:
- - { resource: "../test/mailer.yaml" }
diff --git a/tests/Application/config/packages/test_cached/monolog.yaml b/tests/Application/config/packages/test_cached/monolog.yaml
deleted file mode 100644
index 7e2b9e3..0000000
--- a/tests/Application/config/packages/test_cached/monolog.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-monolog:
- handlers:
- main:
- type: stream
- path: "%kernel.logs_dir%/%kernel.environment%.log"
- level: error
diff --git a/tests/Application/config/packages/test_cached/security.yaml b/tests/Application/config/packages/test_cached/security.yaml
deleted file mode 100644
index 76e9273..0000000
--- a/tests/Application/config/packages/test_cached/security.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-imports:
- - { resource: ../test/security.yaml }
diff --git a/tests/Application/config/packages/test_cached/sylius_channel.yaml b/tests/Application/config/packages/test_cached/sylius_channel.yaml
deleted file mode 100644
index bab83ef..0000000
--- a/tests/Application/config/packages/test_cached/sylius_channel.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-sylius_channel:
- debug: true
diff --git a/tests/Application/config/packages/test_cached/sylius_theme.yaml b/tests/Application/config/packages/test_cached/sylius_theme.yaml
deleted file mode 100644
index 4d34199..0000000
--- a/tests/Application/config/packages/test_cached/sylius_theme.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-sylius_theme:
- sources:
- test: ~
diff --git a/tests/Application/config/packages/test_cached/sylius_uploader.yaml b/tests/Application/config/packages/test_cached/sylius_uploader.yaml
deleted file mode 100644
index cfa727e..0000000
--- a/tests/Application/config/packages/test_cached/sylius_uploader.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-imports:
- - { resource: "../test/sylius_uploader.yaml" }
diff --git a/tests/Application/config/packages/test_cached/twig.yaml b/tests/Application/config/packages/test_cached/twig.yaml
deleted file mode 100644
index 8c6e0b4..0000000
--- a/tests/Application/config/packages/test_cached/twig.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-twig:
- strict_variables: true
diff --git a/tests/Application/config/packages/translation.yaml b/tests/Application/config/packages/translation.yaml
deleted file mode 100644
index 1f4f966..0000000
--- a/tests/Application/config/packages/translation.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-framework:
- default_locale: '%locale%'
- translator:
- paths:
- - '%kernel.project_dir%/translations'
- fallbacks:
- - '%locale%'
- - 'en'
diff --git a/tests/Application/config/packages/twig.yaml b/tests/Application/config/packages/twig.yaml
deleted file mode 100644
index 8545473..0000000
--- a/tests/Application/config/packages/twig.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-twig:
- paths: ['%kernel.project_dir%/templates']
- debug: '%kernel.debug%'
- strict_variables: '%kernel.debug%'
-
-services:
- _defaults:
- public: false
- autowire: true
- autoconfigure: true
-
- Twig\Extra\Intl\IntlExtension: ~
diff --git a/tests/Application/config/packages/validator.yaml b/tests/Application/config/packages/validator.yaml
deleted file mode 100644
index 61807db..0000000
--- a/tests/Application/config/packages/validator.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-framework:
- validation:
- enable_annotations: true
diff --git a/tests/Application/config/packages/webpack_encore.yaml b/tests/Application/config/packages/webpack_encore.yaml
deleted file mode 100644
index 9bee248..0000000
--- a/tests/Application/config/packages/webpack_encore.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-webpack_encore:
- output_path: '%kernel.project_dir%/public/build/default'
- builds:
- shop: '%kernel.project_dir%/public/build/shop'
- admin: '%kernel.project_dir%/public/build/admin'
diff --git a/tests/Application/config/routes/dev/web_profiler.yaml b/tests/Application/config/routes/dev/web_profiler.yaml
deleted file mode 100644
index 3e79dc2..0000000
--- a/tests/Application/config/routes/dev/web_profiler.yaml
+++ /dev/null
@@ -1,7 +0,0 @@
-_wdt:
- resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
- prefix: /_wdt
-
-_profiler:
- resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
- prefix: /_profiler
diff --git a/tests/Application/config/routes/liip_imagine.yaml b/tests/Application/config/routes/liip_imagine.yaml
deleted file mode 100644
index 201cbd5..0000000
--- a/tests/Application/config/routes/liip_imagine.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-_liip_imagine:
- resource: "@LiipImagineBundle/Resources/config/routing.yaml"
diff --git a/tests/Application/config/routes/sylius_admin.yaml b/tests/Application/config/routes/sylius_admin.yaml
deleted file mode 100644
index 1ba48d6..0000000
--- a/tests/Application/config/routes/sylius_admin.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-sylius_admin:
- resource: "@SyliusAdminBundle/Resources/config/routing.yml"
- prefix: /admin
diff --git a/tests/Application/config/routes/sylius_api.yaml b/tests/Application/config/routes/sylius_api.yaml
deleted file mode 100644
index ae01ffc..0000000
--- a/tests/Application/config/routes/sylius_api.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-sylius_api:
- resource: "@SyliusApiBundle/Resources/config/routing.yml"
- prefix: "%sylius.security.new_api_route%"
diff --git a/tests/Application/config/routes/sylius_shop.yaml b/tests/Application/config/routes/sylius_shop.yaml
deleted file mode 100644
index 92eeae0..0000000
--- a/tests/Application/config/routes/sylius_shop.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-sylius_shop:
- resource: "@SyliusShopBundle/Resources/config/routing.yml"
- prefix: /{_locale}
- requirements:
- _locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$
-
-sylius_shop_payum:
- resource: "@SyliusShopBundle/Resources/config/routing/payum.yml"
-
-sylius_shop_default_locale:
- path: /
- methods: [GET]
- defaults:
- _controller: sylius.controller.shop.locale_switch:switchAction
diff --git a/tests/Application/config/routes/test/routing.yaml b/tests/Application/config/routes/test/routing.yaml
deleted file mode 100644
index 0ca57d9..0000000
--- a/tests/Application/config/routes/test/routing.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-sylius_test_plugin_main:
- path: /test/main
- controller: FrameworkBundle:Template:template
- defaults:
- template: "@SyliusTestPlugin/main.html.twig"
diff --git a/tests/Application/config/routes/test/sylius_test_plugin.yaml b/tests/Application/config/routes/test/sylius_test_plugin.yaml
deleted file mode 100644
index 0ca57d9..0000000
--- a/tests/Application/config/routes/test/sylius_test_plugin.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-sylius_test_plugin_main:
- path: /test/main
- controller: FrameworkBundle:Template:template
- defaults:
- template: "@SyliusTestPlugin/main.html.twig"
diff --git a/tests/Application/config/routes/test_cached/routing.yaml b/tests/Application/config/routes/test_cached/routing.yaml
deleted file mode 100644
index 0ca57d9..0000000
--- a/tests/Application/config/routes/test_cached/routing.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-sylius_test_plugin_main:
- path: /test/main
- controller: FrameworkBundle:Template:template
- defaults:
- template: "@SyliusTestPlugin/main.html.twig"
diff --git a/tests/Application/config/routes/test_cached/sylius_test_plugin.yaml b/tests/Application/config/routes/test_cached/sylius_test_plugin.yaml
deleted file mode 100644
index 0ca57d9..0000000
--- a/tests/Application/config/routes/test_cached/sylius_test_plugin.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-sylius_test_plugin_main:
- path: /test/main
- controller: FrameworkBundle:Template:template
- defaults:
- template: "@SyliusTestPlugin/main.html.twig"
diff --git a/tests/Application/config/services.yaml b/tests/Application/config/services.yaml
deleted file mode 100644
index 52c81f8..0000000
--- a/tests/Application/config/services.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-# Put parameters here that don't need to change on each machine where the app is deployed
-# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
-parameters:
- locale: en_US
- sylius.form.type.address.validation_groups: ['Default']
diff --git a/tests/Application/config/services_test.yaml b/tests/Application/config/services_test.yaml
deleted file mode 100644
index b24cc3b..0000000
--- a/tests/Application/config/services_test.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-imports:
- - { resource: "../../Behat/Resources/services.xml" }
- - { resource: "../../../vendor/sylius/sylius/src/Sylius/Behat/Resources/config/services.xml" }
-
-parameters:
- app.taxation.eu_zone_code: 'EU'
-
-# workaround needed for strange "test.client.history" problem
-# see https://github.com/FriendsOfBehat/SymfonyExtension/issues/88
-services:
- Symfony\Component\BrowserKit\AbstractBrowser: '@test.client'
diff --git a/tests/Application/config/services_test_cached.yaml b/tests/Application/config/services_test_cached.yaml
deleted file mode 100644
index 0de380e..0000000
--- a/tests/Application/config/services_test_cached.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-imports:
- - { resource: "services_test.yaml" }
diff --git a/tests/Application/config/validator/Address.xml b/tests/Application/config/validator/Address.xml
deleted file mode 100644
index 6048b0e..0000000
--- a/tests/Application/config/validator/Address.xml
+++ /dev/null
@@ -1,288 +0,0 @@
-
-
-
-
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.company.not_blank
-
- company
-
-
-
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.italian_tax_code.valid
-
- individual-IT
- company-IT
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.italian_tax_code.not_blank
-
- individual-IT
- company-IT
-
-
-
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.italian_vat_number.not_blank
-
- company-AT
- company-BE
- company-BG
- company-CY
- company-CZ
- company-DE
- company-DK
- company-EE
- company-GR
- company-ES
- company-FI
- company-FR
- company-HR
- company-HU
- company-IE
- company-IT
- company-LU
- company-LV
- company-LT
- company-MT
- company-NL
- company-PL
- company-PT
- company-RO
- company-SE
- company-SI
- company-SK
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- AT
-
- company-AT
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- BE
-
- company-BE
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- BG
-
- company-BG
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- CY
-
- company-CY
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- CZ
-
- company-CZ
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- DE
-
- company-DE
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- DK
-
- company-DK
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- EE
-
- company-EE
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- EL
-
- company-GR
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- ES
-
- company-ES
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- FI
-
- company-FI
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- FR
-
- company-FR
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- HR
-
- company-HR
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- HU
-
- company-HU
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- IE
-
- company-IE
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.italian_vat_number.valid
-
- company-IT
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- LU
-
- company-LU
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- LV
-
- company-LV
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- LT
-
- company-LT
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- MT
-
- company-MT
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- NL
-
- company-NL
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- PL
-
- company-PL
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- PT
-
- company-PT
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- RO
-
- company-RO
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- SE
-
- company-SE
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- SI
-
- company-SI
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.european_vat_number.valid
- SK
-
- company-SK
-
-
-
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.italian_sdi_code.valid
- /^[0-Z]{6,7}$/
-
- company-IT
-
-
-
- this.getPecAddress() !== null or this.getSdiCode() !== null
- webgriffe_sylius_italian_invoiceable_order.address.pec_or_sdi_required
-
- company-IT
-
-
-
-
-
-
- webgriffe_sylius_italian_invoiceable_order.address.pec_address.valid
-
- sylius
-
-
-
- this.getSdiCode() !== null or this.getPecAddress() !== null
- webgriffe_sylius_italian_invoiceable_order.address.pec_or_sdi_required
-
- company-IT
-
-
-
-
-
diff --git a/tests/Application/config/validator/Order.xml b/tests/Application/config/validator/Order.xml
deleted file mode 100644
index a5fa5bf..0000000
--- a/tests/Application/config/validator/Order.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
- webgriffe_sylius_italian_invoiceable_order.order.billing_recipient_type.not_blank
- sylius_checkout_complete
-
-
- webgriffe_sylius_italian_invoiceable_order.order.billing_recipient_type.choice
-
- App\Entity\Addressing\Address
- getBillingRecipientTypes
-
- sylius_checkout_complete
-
-
-
-
diff --git a/tests/Application/package.json b/tests/Application/package.json
deleted file mode 100644
index 32ccdc4..0000000
--- a/tests/Application/package.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "dependencies": {
- "@babel/polyfill": "^7.0.0",
- "chart.js": "^3.7.1",
- "jquery": "^3.5.0",
- "jquery.dirtyforms": "^2.0.0",
- "lightbox2": "^2.9.0",
- "semantic-ui-css": "^2.2.0",
- "slick-carousel": "^1.8.1"
- },
- "devDependencies": {
- "@babel/core": "^7.0.0",
- "@babel/plugin-external-helpers": "^7.0.0",
- "@babel/plugin-proposal-object-rest-spread": "^7.18.9",
- "@babel/preset-env": "^7.18.10",
- "@babel/register": "^7.0.0",
- "@rollup/plugin-babel": "^5.3.1",
- "@rollup/plugin-commonjs": "^22.0.2",
- "@rollup/plugin-inject": "^4.0.4",
- "@rollup/plugin-node-resolve": "^13.3.0",
- "@semantic-ui-react/css-patch": "^1.1.2",
- "@symfony/webpack-encore": "^3.1.0",
- "babel-plugin-fast-async": "^6.1.2",
- "babel-plugin-module-resolver": "^4.1.0",
- "dedent": "^0.7.0",
- "eslint": "^8.23.0",
- "eslint-config-airbnb-base": "^15.0.0",
- "eslint-import-resolver-babel-module": "^5.3.1",
- "eslint-plugin-import": "^2.26.0",
- "fast-async": "^6.3.8",
- "gulp": "^4.0.2",
- "gulp-chug": "^0.5.1",
- "gulp-concat": "^2.6.1",
- "gulp-debug": "^4.0.0",
- "gulp-if": "^3.0.0",
- "gulp-livereload": "^4.0.2",
- "gulp-order": "^1.2.0",
- "gulp-sass": "^5.1.0",
- "gulp-sourcemaps": "^3.0.0",
- "gulp-uglifycss": "^1.1.0",
- "merge-stream": "^2.0.0",
- "rollup": "^2.79.0",
- "rollup-plugin-terser": "^7.0.2",
- "sass": "^1.54.8",
- "sass-loader": "^13.0.0",
- "upath": "^2.0.1",
- "yargs": "^17.5.1"
- },
- "engines": {
- "node": "^14 || ^16 || ^18"
- },
- "engineStrict": true,
- "scripts": {
- "watch": "encore dev --watch",
- "build": "encore dev",
- "build:prod": "encore production",
- "gulp": "gulp build",
- "lint": "yarn lint:js",
- "lint:js": "eslint gulpfile.babel.js src/Sylius/Bundle/AdminBundle/gulpfile.babel.js src/Sylius/Bundle/ShopBundle/gulpfile.babel.js src/Sylius/Bundle/UiBundle/Resources/private/js src/Sylius/Bundle/AdminBundle/Resources/private/js src/Sylius/Bundle/ShopBundle/Resources/private/js",
- "postinstall": "semantic-ui-css-patch"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/Sylius/Sylius.git"
- },
- "author": "Paweł Jędrzejewski",
- "license": "MIT"
-}
diff --git a/tests/Application/public/.htaccess b/tests/Application/public/.htaccess
deleted file mode 100644
index 99ed00d..0000000
--- a/tests/Application/public/.htaccess
+++ /dev/null
@@ -1,25 +0,0 @@
-DirectoryIndex app.php
-
-
- RewriteEngine On
-
- RewriteCond %{HTTP:Authorization} ^(.*)
- RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
-
- RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
- RewriteRule ^(.*) - [E=BASE:%1]
-
- RewriteCond %{ENV:REDIRECT_STATUS} ^$
- RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
-
- RewriteCond %{REQUEST_FILENAME} -f
- RewriteRule .? - [L]
-
- RewriteRule .? %{ENV:BASE}/index.php [L]
-
-
-
-
- RedirectMatch 302 ^/$ /index.php/
-
-
diff --git a/tests/Application/public/favicon.ico b/tests/Application/public/favicon.ico
deleted file mode 100644
index 592f7a8..0000000
Binary files a/tests/Application/public/favicon.ico and /dev/null differ
diff --git a/tests/Application/public/index.php b/tests/Application/public/index.php
deleted file mode 100644
index 95525fb..0000000
--- a/tests/Application/public/index.php
+++ /dev/null
@@ -1,29 +0,0 @@
-handle($request);
-$response->send();
-$kernel->terminate($request, $response);
diff --git a/tests/Application/public/robots.txt b/tests/Application/public/robots.txt
deleted file mode 100644
index 214e411..0000000
--- a/tests/Application/public/robots.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-# www.robotstxt.org/
-# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449
-
-User-agent: *
diff --git a/tests/Application/webpack.config.js b/tests/Application/webpack.config.js
deleted file mode 100644
index 599e371..0000000
--- a/tests/Application/webpack.config.js
+++ /dev/null
@@ -1,49 +0,0 @@
-const path = require('path');
-const Encore = require('@symfony/webpack-encore');
-
-const syliusBundles = path.resolve(__dirname, '../../vendor/sylius/sylius/src/Sylius/Bundle/');
-const uiBundleScripts = path.resolve(syliusBundles, 'UiBundle/Resources/private/js/');
-const uiBundleResources = path.resolve(syliusBundles, 'UiBundle/Resources/private/');
-
-// Shop config
-Encore
- .setOutputPath('public/build/shop/')
- .setPublicPath('/build/shop')
- .addEntry('shop-entry', './assets/shop/entry.js')
- .disableSingleRuntimeChunk()
- .cleanupOutputBeforeBuild()
- .enableSourceMaps(!Encore.isProduction())
- .enableVersioning(Encore.isProduction())
- .enableSassLoader();
-
-const shopConfig = Encore.getWebpackConfig();
-
-shopConfig.resolve.alias['sylius/ui'] = uiBundleScripts;
-shopConfig.resolve.alias['sylius/ui-resources'] = uiBundleResources;
-shopConfig.resolve.alias['sylius/bundle'] = syliusBundles;
-shopConfig.resolve.alias['chart.js/dist/Chart.min'] = path.resolve(__dirname, 'node_modules/chart.js/dist/chart.min.js');
-shopConfig.name = 'shop';
-
-Encore.reset();
-
-// Admin config
-Encore
- .setOutputPath('public/build/admin/')
- .setPublicPath('/build/admin')
- .addEntry('admin-entry', './assets/admin/entry.js')
- .disableSingleRuntimeChunk()
- .cleanupOutputBeforeBuild()
- .enableSourceMaps(!Encore.isProduction())
- .enableVersioning(Encore.isProduction())
- .enableSassLoader();
-
-const adminConfig = Encore.getWebpackConfig();
-
-adminConfig.resolve.alias['sylius/ui'] = uiBundleScripts;
-adminConfig.resolve.alias['sylius/ui-resources'] = uiBundleResources;
-adminConfig.resolve.alias['sylius/bundle'] = syliusBundles;
-adminConfig.resolve.alias['chart.js/dist/Chart.min'] = path.resolve(__dirname, 'node_modules/chart.js/dist/chart.min.js');
-adminConfig.externals = Object.assign({}, adminConfig.externals, { window: 'window', document: 'document' });
-adminConfig.name = 'admin';
-
-module.exports = [shopConfig, adminConfig];
diff --git a/tests/Behat/Resources/suites.yml b/tests/Behat/Resources/suites.yml
index ee38cee..8aa3d97 100644
--- a/tests/Behat/Resources/suites.yml
+++ b/tests/Behat/Resources/suites.yml
@@ -30,7 +30,7 @@ default:
- webgriffe_sylius_italian_invoiceable_order.behat.context.ui.shop.checkout.complete
filters:
- tags: "@filling_invoicing_information && @ui"
+ tags: "@filling_invoicing_information&&@ui"
ui_invoiceable_address_book:
contexts:
@@ -59,7 +59,7 @@ default:
- webgriffe_sylius_italian_invoiceable_order.behat.context.ui.shop.checkout.addressing
filters:
- tags: "@invoiceable_address_book && @ui"
+ tags: "@invoiceable_address_book&&@ui"
ui_applying_taxes:
contexts:
@@ -88,4 +88,4 @@ default:
- webgriffe_sylius_italian_invoiceable_order.behat.context.ui.shop.checkout.addressing
filters:
- tags: "@applying_taxes && @ui"
+ tags: "@applying_taxes&&@ui"
diff --git a/tests/Application/config/secrets/test/.gitignore b/tests/Functional/.gitignore
similarity index 100%
rename from tests/Application/config/secrets/test/.gitignore
rename to tests/Functional/.gitignore
diff --git a/tests/Application/config/secrets/test_cached/.gitignore b/tests/Integration/.gitignore
similarity index 100%
rename from tests/Application/config/secrets/test_cached/.gitignore
rename to tests/Integration/.gitignore
diff --git a/tests/TestApplication/.env b/tests/TestApplication/.env
new file mode 100644
index 0000000..dc0d36a
--- /dev/null
+++ b/tests/TestApplication/.env
@@ -0,0 +1,7 @@
+DATABASE_URL=mysql://root@127.0.0.1/webgriffe_sylius_italian_invoiceable_order_plugin_%kernel.environment%
+
+BEHAT_BASE_URL="https://127.0.0.1:8080/"
+
+SYLIUS_TEST_APP_BUNDLES_PATH="tests/TestApplication/config/bundles.php"
+SYLIUS_TEST_APP_CONFIGS_TO_IMPORT="@WebgriffeSyliusItalianInvoiceableOrderPlugin/tests/TestApplication/config/config.yaml"
+SYLIUS_TEST_APP_ROUTES_TO_IMPORT="@WebgriffeSyliusItalianInvoiceableOrderPlugin/tests/TestApplication/config/routes.yaml"
diff --git a/tests/TestApplication/.env.test b/tests/TestApplication/.env.test
new file mode 100644
index 0000000..71083d5
--- /dev/null
+++ b/tests/TestApplication/.env.test
@@ -0,0 +1 @@
+DATABASE_URL=mysql://root@127.0.0.1/webgriffe_sylius_italian_invoiceable_order_plugin_%kernel.environment%
diff --git a/tests/TestApplication/config/bundles.php b/tests/TestApplication/config/bundles.php
new file mode 100644
index 0000000..e0d1d17
--- /dev/null
+++ b/tests/TestApplication/config/bundles.php
@@ -0,0 +1,5 @@
+ ['all' => true],
+];
diff --git a/tests/TestApplication/config/config.yaml b/tests/TestApplication/config/config.yaml
new file mode 100644
index 0000000..4124382
--- /dev/null
+++ b/tests/TestApplication/config/config.yaml
@@ -0,0 +1,7 @@
+imports:
+ - { resource: "@WebgriffeSyliusItalianInvoiceableOrderPlugin/config/config.yaml" }
+ - { resource: "services_test.php" }
+
+twig:
+ paths:
+ '%kernel.project_dir%/../../../tests/TestApplication/templates': ~
diff --git a/tests/Application/config/serialization/.gitignore b/tests/TestApplication/config/routes.yaml
similarity index 100%
rename from tests/Application/config/serialization/.gitignore
rename to tests/TestApplication/config/routes.yaml
diff --git a/tests/TestApplication/config/services_test.php b/tests/TestApplication/config/services_test.php
new file mode 100644
index 0000000..ac73c31
--- /dev/null
+++ b/tests/TestApplication/config/services_test.php
@@ -0,0 +1,14 @@
+env(), 'test')) {
+//parameters:
+// app.taxation.eu_zone_code: 'EU'
+ $container->import('../../../vendor/sylius/sylius/src/Sylius/Behat/Resources/config/services.xml');
+ $container->import('@WebgriffeSyliusItalianInvoiceableOrderPlugin/tests/Behat/Resources/services.xml');
+ }
+};
diff --git a/tests/Application/src/Entity/.gitignore b/tests/TestApplication/src/Entity/.gitignore
similarity index 100%
rename from tests/Application/src/Entity/.gitignore
rename to tests/TestApplication/src/Entity/.gitignore
diff --git a/tests/Application/src/Entity/Addressing/Address.php b/tests/TestApplication/src/Entity/Addressing/Address.php
similarity index 100%
rename from tests/Application/src/Entity/Addressing/Address.php
rename to tests/TestApplication/src/Entity/Addressing/Address.php
diff --git a/tests/Application/src/Entity/Order/Order.php b/tests/TestApplication/src/Entity/Order/Order.php
similarity index 100%
rename from tests/Application/src/Entity/Order/Order.php
rename to tests/TestApplication/src/Entity/Order/Order.php
diff --git a/tests/Application/templates/.gitignore b/tests/TestApplication/templates/.gitignore
similarity index 100%
rename from tests/Application/templates/.gitignore
rename to tests/TestApplication/templates/.gitignore
diff --git a/tests/Application/templates/bundles/SyliusAdminBundle/Common/Form/_address.html.twig b/tests/TestApplication/templates/bundles/SyliusAdminBundle/Common/Form/_address.html.twig
similarity index 100%
rename from tests/Application/templates/bundles/SyliusAdminBundle/Common/Form/_address.html.twig
rename to tests/TestApplication/templates/bundles/SyliusAdminBundle/Common/Form/_address.html.twig
diff --git a/tests/Application/templates/bundles/SyliusAdminBundle/Common/_address.html.twig b/tests/TestApplication/templates/bundles/SyliusAdminBundle/Common/_address.html.twig
similarity index 100%
rename from tests/Application/templates/bundles/SyliusAdminBundle/Common/_address.html.twig
rename to tests/TestApplication/templates/bundles/SyliusAdminBundle/Common/_address.html.twig
diff --git a/tests/Application/templates/bundles/SyliusAdminBundle/Layout/_logo.html.twig b/tests/TestApplication/templates/bundles/SyliusAdminBundle/Layout/_logo.html.twig
similarity index 100%
rename from tests/Application/templates/bundles/SyliusAdminBundle/Layout/_logo.html.twig
rename to tests/TestApplication/templates/bundles/SyliusAdminBundle/Layout/_logo.html.twig
diff --git a/tests/Application/templates/bundles/SyliusAdminBundle/Security/_content.html.twig b/tests/TestApplication/templates/bundles/SyliusAdminBundle/Security/_content.html.twig
similarity index 100%
rename from tests/Application/templates/bundles/SyliusAdminBundle/Security/_content.html.twig
rename to tests/TestApplication/templates/bundles/SyliusAdminBundle/Security/_content.html.twig
diff --git a/tests/Application/templates/bundles/SyliusAdminBundle/_scripts.html.twig b/tests/TestApplication/templates/bundles/SyliusAdminBundle/_scripts.html.twig
similarity index 100%
rename from tests/Application/templates/bundles/SyliusAdminBundle/_scripts.html.twig
rename to tests/TestApplication/templates/bundles/SyliusAdminBundle/_scripts.html.twig
diff --git a/tests/Application/templates/bundles/SyliusAdminBundle/_styles.html.twig b/tests/TestApplication/templates/bundles/SyliusAdminBundle/_styles.html.twig
similarity index 100%
rename from tests/Application/templates/bundles/SyliusAdminBundle/_styles.html.twig
rename to tests/TestApplication/templates/bundles/SyliusAdminBundle/_styles.html.twig
diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Checkout/Address/_addressBookSelect.html.twig b/tests/TestApplication/templates/bundles/SyliusShopBundle/Checkout/Address/_addressBookSelect.html.twig
similarity index 100%
rename from tests/Application/templates/bundles/SyliusShopBundle/Checkout/Address/_addressBookSelect.html.twig
rename to tests/TestApplication/templates/bundles/SyliusShopBundle/Checkout/Address/_addressBookSelect.html.twig
diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Common/Form/_address.html.twig b/tests/TestApplication/templates/bundles/SyliusShopBundle/Common/Form/_address.html.twig
similarity index 100%
rename from tests/Application/templates/bundles/SyliusShopBundle/Common/Form/_address.html.twig
rename to tests/TestApplication/templates/bundles/SyliusShopBundle/Common/Form/_address.html.twig
diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Common/_address.html.twig b/tests/TestApplication/templates/bundles/SyliusShopBundle/Common/_address.html.twig
similarity index 100%
rename from tests/Application/templates/bundles/SyliusShopBundle/Common/_address.html.twig
rename to tests/TestApplication/templates/bundles/SyliusShopBundle/Common/_address.html.twig
diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Homepage/_banner.html.twig b/tests/TestApplication/templates/bundles/SyliusShopBundle/Homepage/_banner.html.twig
similarity index 100%
rename from tests/Application/templates/bundles/SyliusShopBundle/Homepage/_banner.html.twig
rename to tests/TestApplication/templates/bundles/SyliusShopBundle/Homepage/_banner.html.twig
diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Layout/Header/_logo.html.twig b/tests/TestApplication/templates/bundles/SyliusShopBundle/Layout/Header/_logo.html.twig
similarity index 100%
rename from tests/Application/templates/bundles/SyliusShopBundle/Layout/Header/_logo.html.twig
rename to tests/TestApplication/templates/bundles/SyliusShopBundle/Layout/Header/_logo.html.twig
diff --git a/tests/Application/templates/bundles/SyliusShopBundle/_scripts.html.twig b/tests/TestApplication/templates/bundles/SyliusShopBundle/_scripts.html.twig
similarity index 100%
rename from tests/Application/templates/bundles/SyliusShopBundle/_scripts.html.twig
rename to tests/TestApplication/templates/bundles/SyliusShopBundle/_scripts.html.twig
diff --git a/tests/Application/templates/bundles/SyliusShopBundle/_styles.html.twig b/tests/TestApplication/templates/bundles/SyliusShopBundle/_styles.html.twig
similarity index 100%
rename from tests/Application/templates/bundles/SyliusShopBundle/_styles.html.twig
rename to tests/TestApplication/templates/bundles/SyliusShopBundle/_styles.html.twig
diff --git a/tests/Application/translations/.gitignore b/tests/Unit/.gitignore
similarity index 100%
rename from tests/Application/translations/.gitignore
rename to tests/Unit/.gitignore
diff --git a/src/Resources/translations/messages+intl-icu.en.yaml b/translations/messages+intl-icu.en.yaml
similarity index 100%
rename from src/Resources/translations/messages+intl-icu.en.yaml
rename to translations/messages+intl-icu.en.yaml
diff --git a/src/Resources/translations/messages+intl-icu.it.yaml b/translations/messages+intl-icu.it.yaml
similarity index 100%
rename from src/Resources/translations/messages+intl-icu.it.yaml
rename to translations/messages+intl-icu.it.yaml
diff --git a/src/Resources/translations/validators+intl-icu.en.yaml b/translations/validators+intl-icu.en.yaml
similarity index 100%
rename from src/Resources/translations/validators+intl-icu.en.yaml
rename to translations/validators+intl-icu.en.yaml
diff --git a/src/Resources/translations/validators+intl-icu.it.yaml b/translations/validators+intl-icu.it.yaml
similarity index 100%
rename from src/Resources/translations/validators+intl-icu.it.yaml
rename to translations/validators+intl-icu.it.yaml