composer require idmkr/platformify --dev
Add to config\app.php
idmkr\platformify\Providers\CodeceptionServiceProvider::class,
tests_support\Helper\Functional.php
namespace Helper;
use Codeception\TestInterface;
use Idmkr\Platformify\Traits\Platformify;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
class Functional extends \Codeception\Module
{
use Platformify;
public $app;
// HOOK: before each suite
public function _before(TestInterface $test) {
$this->boot();
$this->artisan('app:install', ['--seed-only' => true, '--env' => 'testing']);
}
}
add in composer.json :
"post-install-cmd": [
...
"php artisan app:install --seed",
...
],