idmkr / platformify
此包的最新版本(dev-master)没有可用的许可证信息。
将 Platform 框架适配到 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: 2024-09-11 20:15:46 UTC
README
安装
composer require idmkr/platformify --dev
添加到 config\app.php
idmkr\platformify\Providers\CodeceptionServiceProvider::class,
在 codeception 测试中使用
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']); } }
与 CodeShip 一起使用
添加到 composer.json
"post-install-cmd": [ ... "php artisan app:install --seed", ... ],