znt/module/execution/test/ui/startinlite.php

49 lines
1.5 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env php
<?php
/**
title=运营管理界面开始看板
timeout=0
cid=1
- 执行tester模块的startWithGreaterDate方法参数是$realBegan[0], 2▫
- 最终测试状态 @SUCCESS
- 测试结果 @开始看板表单页提示信息正确
- 执行tester模块的start方法参数是$realBegan[1], 2▫
- 最终测试状态 @SUCCESS
- 测试结果 @开始看板成功
*/
chdir(__DIR__);
include '../lib/ui/startinlite.ui.class.php';
$project = zenData('project');
$project->id->range('1-100');
$project->project->range('0, 1{2}');
$project->model->range('kanban, []{2}');
$project->type->range('project, kanban{2}');
$project->auth->range('[]');
$project->storyType->range('[]');
$project->parent->range('0, 1{2}');
$project->path->range('`,1,`, `,1,2,`, `,1,3,`');
$project->grade->range('1');
$project->name->range('项目, 看板1, 看板2');
$project->begin->range('(-2M)-(-M):1D')->type('timestamp')->format('YY/MM/DD');
$project->end->range('(+2M)-(+3M):1D')->type('timestamp')->format('YY/MM/DD');
$project->openedBy->range('user1');
$project->acl->range('open');
$project->status->range('wait');
$project->vision->range('lite');
$project->gen(3);
$tester = new startExecutionTester();
$tester->login();
$realBegan = array(date('Y-m-d', strtotime('+20 days')), date('Y-m-d'));
r($tester->startWithGreaterDate($realBegan[0], 2)) && p('status,message') && e('SUCCESS,开始看板表单页提示信息正确');
r($tester->start($realBegan[1], 2)) && p('status,message') && e('SUCCESS,开始看板成功');
$tester->closeBrowser();