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

28 lines
1.1 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
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/model.class.php';
su('admin');
$execution = new executionModelTest();
/**
title=测试 executionModel::getKanbanColumns();
timeout=0
cid=16319
- 测试步骤1默认看板列配置 @wait
- 测试步骤2完整看板列配置属性4 @cancel
- 测试步骤3验证默认看板列数量 @4
- 测试步骤4验证完整看板列数量 @6
- 测试步骤5空对象allCols属性处理 @wait
*/
r($execution->getKanbanColumnsTest('default')) && p('0') && e('wait'); // 测试步骤1默认看板列配置
r($execution->getKanbanColumnsTest('all_cols')) && p('4') && e('cancel'); // 测试步骤2完整看板列配置
r($execution->getKanbanColumnsTest('count_default')) && p() && e('4'); // 测试步骤3验证默认看板列数量
r($execution->getKanbanColumnsTest('count_all')) && p() && e('6'); // 测试步骤4验证完整看板列数量
r($execution->getKanbanColumnsTest('empty')) && p('0') && e('wait'); // 测试步骤5空对象allCols属性处理