Skip to content

kaffein-agency/platformify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Test Helper for Cartalyst Platform Framework

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",
            ...
        ],

About

Adapt Platform framework to Codeception

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages