flagrow / steamroller
The package to test Flarum extensions.
Requires
- flarum/core: ^0.1.0-beta.8
- fzaninotto/faker: ^1.8.0
- phpunit/phpunit: 6.*
This package is auto-updated.
Last update: 2021-05-29 01:03:52 UTC
README
Because you can't extend the default Flarum console commands, this package adds an alternate php vendor/bin/flagrow
command that uses events to register new commands.
Install
Add to the composer.json of your extension:
"require-dev": { "flagrow/steamroller": "*" }
Usage
First, set up a phpunit.xml.
Make sure your tests extend the Flagrow\Steamroller\TestCase
.
To run tests locally, use:
vendor/bin/phpunit
Example implementations:
Support our work
We prefer to keep our work available to everyone. In order to do so we rely on voluntary contributions on Patreon.
Security
If you discover a security vulnerability within Steamroller, please send an email to the Gravure team at security@gravure.io. All security vulnerabilities will be promptly addressed.
Please include as many details as possible. You can use php flarum info
to get the PHP, Flarum and extension versions installed.