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

21 lines
683 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=测试 projectModel::checkHasContent;
cid=1
pid=1
查找是否存在父级或者所属项目为1的数据若存在则为true >> 1
查找是否存在父级或者所属项目为0的数据若存在则为ture >> 1
*/
$project = $tester->loadModel('project');
$unExistence = array(1, 0);
r($project->checkHasContent($unExistence[0])) && p() && e('1'); // 查找是否存在父级或者所属项目为1的数据若存在则为true
r($project->checkHasContent($unExistence[1])) && p() && e('1'); // 查找是否存在父级或者所属项目为0的数据若存在则为ture