idmkr / platformify
There is no license information available for the latest version (dev-master) of this package.
Adapt Platform framework to Codeception
dev-master
2016-11-23 21:42 UTC
Requires
- codeception/codeception: *
- platform/foundation: ~3.0
- platform/installer: ~3.0
This package is auto-updated.
Last update: 2025-02-11 21:14:26 UTC
README
Installation
composer require idmkr/platformify --dev
Add to config\app.php
idmkr\platformify\Providers\CodeceptionServiceProvider::class,
Use in codeception test
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']); } }
Use with CodeShip
add in composer.json :
"post-install-cmd": [ ... "php artisan app:install --seed", ... ],