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

This package is auto-updated.

Last update: 2024-05-11 19:19:28 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",
            ...
        ],