znt/module/execution/test/model/getkanbanstatuslist.php

33 lines
1.5 KiB
PHP
Executable file
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=测试 executionModel::getKanbanStatusList();
timeout=0
cid=16322
- 步骤1验证状态列表数量 @7
- 步骤2验证wait状态值属性wait @未开始
- 步骤3验证doing状态值属性doing @进行中
- 步骤4验证done状态值属性done @已完成
- 步骤5验证pause状态值属性pause @已暂停
- 步骤6验证cancel状态值属性cancel @已取消
- 步骤7验证closed状态值属性closed @已关闭
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/model.class.php';
su('admin');
$executionTest = new executionModelTest();
r($executionTest->getKanbanStatusListTest(0)) && p() && e('7'); // 步骤1验证状态列表数量
r($executionTest->getKanbanStatusListTest(1)) && p('wait') && e('未开始'); // 步骤2验证wait状态值
r($executionTest->getKanbanStatusListTest(1)) && p('doing') && e('进行中'); // 步骤3验证doing状态值
r($executionTest->getKanbanStatusListTest(1)) && p('done') && e('已完成'); // 步骤4验证done状态值
r($executionTest->getKanbanStatusListTest(1)) && p('pause') && e('已暂停'); // 步骤5验证pause状态值
r($executionTest->getKanbanStatusListTest(1)) && p('cancel') && e('已取消'); // 步骤6验证cancel状态值
r($executionTest->getKanbanStatusListTest(1)) && p('closed') && e('已关闭'); // 步骤7验证closed状态值