定制 colee/yii2-gii 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

colee/yii2-gii

Composer 安装命令:

composer require colee/yii2-gii

包简介

gii library for Yii2 framework

README 文档

README

================================== 安装:composer require colee/yii2-gii --prefer-dist

Model分层说明

common里分了三层
bases --- 基础层
models --- 实例方法层
cores --- 核心层,对外接口,静态方法为主

usage

在配置中添加

$config['modules']['gii']['generators'] = [
    'model' => [
        'class' => 'colee\gii\model\Generator'
    ],
];

夹具数据模版生产工具

usage

在配置中添加

$config['modules']['gii']['generators'] = [
    'fixtures' => [
        'class' => 'colee\gii\fixtures\Generator'
    ],
];

通过访问 http://127.0.0.1:8080/gii/fixtures 生成夹具模版
并前往模版编写写测试用例

生成假数据

tests/codeception/bin/yii fixture/generate teacher --count=100

运行测试用例:

	cd tests/codeception/common/
	codecept run

运行指定目录的case

codecept run .\unit\models\fixtures

运行指定文件的某个case

codecept run .\unit\models\LoginFormTest.php:testLoginNoUser

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固