Files
EasySoft-ZenTaoPMS/test/model/program/isclickable.php
2022-08-09 14:11:38 +08:00

32 lines
1.6 KiB
PHP
Executable File
Raw 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(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/program.class.php';
/**
title=测试 programModel::createStakeholder();
cid=1
pid=1
传入项目集1动作为closed判断是否可点击 >> 1
传入项目集1动作为activate判断是否可点击 >> 0
传入项目集1动作为suspend判断是否可点击 >> 1
传入项目集2动作为closed判断是否可点击 >> 1
传入项目集2动作为activate判断是否可点击 >> 0
传入项目集2动作为activate判断是否可点击 >> 1
*/
global $tester;
$tester->loadModel('program');
$program1 = $tester->program->getById(1);
$program2 = $tester->program->getById(2);
r($tester->program->isClickable($program1, 'close')) && p('') && e('1'); // 传入项目集1动作为closed判断是否可点击
r($tester->program->isClickable($program1, 'activate')) && p('') && e('0'); // 传入项目集1动作为activate判断是否可点击
r($tester->program->isClickable($program1, 'suspend')) && p('') && e('1'); // 传入项目集1动作为suspend判断是否可点击
r($tester->program->isClickable($program2, 'close')) && p('') && e('1'); // 传入项目集2动作为closed判断是否可点击
r($tester->program->isClickable($program2, 'activate')) && p('') && e('0'); // 传入项目集2动作为activate判断是否可点击
r($tester->program->isClickable($program2, 'suspend')) && p('') && e('1'); // 传入项目集2动作为activate判断是否可点击