37 lines
1.2 KiB
PHP
Executable File
37 lines
1.2 KiB
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
|
|
|
su('admin');
|
|
|
|
zdTable('project')->config('project')->gen(4);
|
|
|
|
/**
|
|
|
|
title=测试 projectModel->checkCanChangeModel();
|
|
timeout=0
|
|
cid=1
|
|
|
|
- 执行project模块的checkCanChangeModel方法,参数是1, scrum @0
|
|
|
|
- 执行project模块的checkCanChangeModel方法,参数是1, agileplus @0
|
|
|
|
- 执行project模块的checkCanChangeModel方法,参数是1, kanban @0
|
|
|
|
- 执行project模块的checkCanChangeModel方法,参数是1, waterfall @1
|
|
|
|
- 执行project模块的checkCanChangeModel方法,参数是1, waterfallplus @1
|
|
|
|
- 执行project模块的checkCanChangeModel方法,参数是1, @0
|
|
|
|
*/
|
|
|
|
global $tester;
|
|
$tester->loadModel('project');
|
|
|
|
r($tester->project->checkCanChangeModel(1, 'scrum')) && p() && e('0');
|
|
r($tester->project->checkCanChangeModel(1, 'agileplus')) && p() && e('0');
|
|
r($tester->project->checkCanChangeModel(1, 'kanban')) && p() && e('0');
|
|
r($tester->project->checkCanChangeModel(1, 'waterfall')) && p() && e('1');
|
|
r($tester->project->checkCanChangeModel(1, 'waterfallplus')) && p() && e('1');
|
|
r($tester->project->checkCanChangeModel(1, '')) && p() && e('0'); |