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

27 lines
1.3 KiB
PHP
Raw Permalink Normal View History

#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/model.class.php';
su('admin');
/**
title=测试 executionModel::getKanbanSetting();
cid=16321
- 测试步骤1验证colorList中wait颜色配置 >> 期望包含'#7EC5FF'
- 测试步骤2验证colorList总数量 >> 期望为6个状态颜色
- 测试步骤3验证默认allCols属性值 >> 期望为'1'
- 测试步骤4验证默认showOption属性值 >> 期望为'0'
- 测试步骤5验证返回对象属性完整性 >> 期望包含必需属性
*/
$count = array('0', '1');
$execution = new executionModelTest();
r($execution->getKanbanSettingTest($count[0])) && p('colorList:wait') && e('~f:7EC5FF$~'); // 步骤1验证colorList中wait颜色配置
r($execution->getKanbanSettingTest($count[1])) && p() && e('6'); // 步骤2验证colorList总数量
r($execution->getKanbanSettingTest('allCols')) && p() && e('1'); // 步骤3验证默认allCols属性值
r($execution->getKanbanSettingTest('showOption')) && p() && e('0'); // 步骤4验证默认showOption属性值
r($execution->getKanbanSettingTest('properties')) && p() && e('allCols,showOption,colorList'); // 步骤5验证返回对象属性完整性