Files
EasySoft-ZenTaoPMS/test/model/project/getswitcher.php
2022-03-16 10:01:30 +08:00

20 lines
864 B
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';
/**
title=测试 programModel::getSwitcher(, , );
cid=1
pid=1
获取项目下拉菜单,项目列表页面没有项目下拉菜单 >> 0
获取项目ID为11的迭代列表页面的项目下拉菜单查看是否包含项目ID为11的名称 >> <span class='text'>项目1</span>
*/
$project = $tester->loadModel('project');
//var_dump($project->getSwitcher(11, 'project', 'browse'));die;
r($project->getSwitcher(11, 'project', 'browse')) && p() && e('0'); //获取项目下拉菜单,项目列表页面没有项目下拉菜单
r($project->getSwitcher(11, 'project', 'execution')) && p() && e("<span class='text'>项目1</span>"); //获取项目ID为11的迭代列表页面的项目下拉菜单查看是否包含项目ID为11的名称