Download the PHP package sylius/test-application without Composer
On this page you can find all versions of the php package sylius/test-application. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package test-application
TestApplication
===============
Developer tool that provides a ready-to-use Sylius-based application for testing and running Sylius plugins.
> ⚠️ While TestApplication is still evolving, it is already being used internally and in official plugins.
We encourage you to adopt it in your plugins, provide feedback, and contribute to improve the developer experience
for the entire Sylius ecosystem.
## Purpose
Previously, each plugin had to maintain its own copy of a test application, leading to duplicated configuration,
maintenance overhead, and version incompatibilities.
This package solves that problem by:
- Extracting a reusable, standalone test application
- Providing an official, centrally maintained solution by the Sylius team
- Simplifying the setup and execution of tests within plugins
- Creating versioned variants aligned with specific Sylius versions (e.g. `1.14`, `2.0`, etc.)
## Installation and configuration in a Plugin
1. Require the TestApplication as a development dependency:
1. Set environment variables in `tests/TestApplication/.env`:
> 💡 The values provided above are examples and should be adjusted for your plugin.
1. If needed, place plugin-specific configuration files in the `tests/TestApplication/config` directory
(e.g. `services.yaml`, `routes.yaml`) and load them by env variables.
1. If your plugin requires additional JavaScript dependencies, add them to `tests/TestApplication/package.json`:
This file will be merged with the main TestApplication `package.json`.
1. If your plugin requires entity extensions, add them in `tests/TestApplication/src/Entity` and ensure:
- Doctrine mappings are configured:
- The namespace is registered properly in the autoloader, in `composer.json` file
bash
vendor/bin/console doctrine:database:create
vendor/bin/console doctrine:migration:migrate -n
vendor/bin/console sylius:fixtures:load -n
(cd vendor/sylius/test-application && yarn install)
(cd vendor/sylius/test-application && yarn build)
vendor/bin/console assets:install
bash
symfony serve --dir=vendor/sylius/test-application/public
```
## Example usage
See an example implementation in [the pull request](https://github.com/Sylius/CmsPlugin/pull/53) to Sylius/CmsPlugin.
## Community
For online communication, we invite you to chat with us & other users on [Sylius Slack](https://sylius-devs.slack.com/).
## License
This package is completely free and released under the MIT License.
All versions of test-application with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
sylius/sylius Version ^2.0
symfony/debug-bundle Version *
symfony/dotenv Version *
symfony/flex Version *
symfony/runtime Version *
symfony/web-profiler-bundle Version *
theofidry/alice-data-fixtures Version *
sylius/sylius Version ^2.0
symfony/debug-bundle Version *
symfony/dotenv Version *
symfony/flex Version *
symfony/runtime Version *
symfony/web-profiler-bundle Version *
theofidry/alice-data-fixtures Version *
The package sylius/test-application contains the following files
Loading the files please wait ....