znt/module/program/test/ui/projectview.php

26 lines
707 B
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=项目视角下添加项目测试
timeout=0
- 添加项目,选择所属项目集后保存
- 测试结果 @项目保存成功且显示在项目集列表。
- 最终测试状态 @SUCCESS
*/
chdir(__DIR__);
include '../lib/ui/projectview.ui.class.php';
zendata('project')->loadYaml('program', false, 2)->gen(10);
$tester = new createProgramTester();
$tester->login();
$programs = new stdClass();
$programs->program = '项目集3';
$projects = new stdClass();
$projects->programProject = '项目A';
r($tester->createProgramProject($programs, $projects)) && p('message,status') && e('项目视角下创建项目成功SUCCESS'); //项目视角下创建项目成功