I am looking forward to your contributions.
There are a few guidelines that I need contributors to follow:
- Coding standards (
composer cs-check
to check andcomposer cs-fix
to fix) - PHPStan (
composer phpstan
, might needcomposer phpstan-setup
first) - Passing tests (
php phpunit.phar
)
By default, it will usually use SQLite DB (out of the box available). Not all tests currently work with SQLite or any non MySQL db yet.
If you want to run all tests, including MySQL ones, you need to set
export DB_CLASS=Mysql
export DB_URL="mysql://root:[email protected]/cake_test"
before you actually run
vendor/bin/phpunit
Make sure such a cake_test
database exists.
Run this from your app dir to update the plugin's queue.pot
file:
bin/cake i18n extract --plugin Queue --extract-core=no --merge=no --overwrite