Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 887 Bytes

File metadata and controls

49 lines (32 loc) · 887 Bytes

Installation

From the plugin root directory, run the following commands:

$ make install -e SYLIUS_VERSION=XX SYMFONY_VERSION=YY

Default values : XX=2.1 and YY=6.4

To be able to setup the plugin database, remember to configure you database credentials in tests/TestApplication/.env.local and tests/TestApplication/.env.test.local.

To reset test environment:

$ make reset

Usage

Running code analyse and tests

  • GrumPHP (see configuration grumphp.yml.)

    GrumPHP is executed by the Git pre-commit hook, but you can launch it manualy with :

    $ make grumphp
  • PHPUnit

    $ make phpunit

Opening Sylius with your plugin

  • Using test environment:

    $ APP_ENV=test symfony server:start -d
  • Using dev environment:

    $ symfony server:start -d