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

32 lines
719 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/editprogram.ui.class.php';
$program = zenData('project');
$program->id->range('1-2');
$program->project->range('0');
$program->type->range('program');
$program->name->range('项目集1,项目集2');
$program->acl->range('open');
$program->gen(2);
$tester = new createProgramTester();
$tester->login();
$editName = new stdClass();
$editName->name = '编辑过的项目集';
r($tester->editProgram($editName)) && p('message,status') && e ('编辑项目集成功SUCCESS'); //编辑项目集成功