Skip to content

netgen-layouts/layouts-ezplatform

Repository files navigation

Netgen Layouts & eZ Platform integration

Installation instructions

INSTALL.md

Running tests

Running tests requires that you have complete vendors installed, so run composer install before running the tests.

You can run unit tests by simply calling vendor/bin/phpunit from the repo root. This will use an in memory SQLite database.

You can also run unit tests on a real database. After you create the database, run the tests with:

$ DATABASE=mysql://root@localhost/nglayouts vendor/bin/phpunit

where mysql://root@localhost/nglayouts is a DSN to your MySQL database.

If you use PostgreSQL, you can use the following command:

$ DATABASE=pgsql://user:pass@localhost/nglayouts vendor/bin/phpunit