2017 © Pedro Peláez
 

library platformify

Adapt Platform framework to Codeception

image

idmkr/platformify

Adapt Platform framework to Codeception

  • Wednesday, November 23, 2016
  • by idmkr
  • Repository
  • 3 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Test Helper for Cartalyst Platform Framework

Installation

composer require idmkr/platformify --dev

Add to config\app.php, (*1)

idmkr\platformify\Providers\CodeceptionServiceProvider::class,

Use in codeception test

tests_support\Helper\Functional.php, (*2)

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 :, (*3)

        "post-install-cmd": [
            ...
            "php artisan app:install --seed",
            ...
        ],

The Versions

23/11 2016

dev-master

9999999-dev

Adapt Platform framework to Codeception

  Sources   Download

The Requires

 

by Avatar idmkr