#!/usr/bin/env php loadYaml('execution')->gen(100)->fixPath(); zenData('user')->gen(100); // 3. 用户登录 su('admin'); // 4. 创建测试实例 $projectTest = new projectZenTest(); // 5. 测试步骤 r(count($projectTest->getKanbanDataTest())) && p() && e('2'); // 步骤1:正常情况下获取看板数据 r($projectTest->getKanbanDataTest()) && p('0:key') && e('my'); // 步骤2:验证第一个区域的key为my r($projectTest->getKanbanDataTest()) && p('1:key') && e('other'); // 步骤3:验证第二个区域的key为other r(count($projectTest->getKanbanDataTest()[0]['items'])) && p() && e('1'); // 步骤4:验证第一个区域items不为空 r(count($projectTest->getKanbanDataTest()[1]['items'])) && p() && e('1'); // 步骤5:验证第二个区域的items包含数据