23 lines
666 B
PHP
Executable File
23 lines
666 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
|
include dirname(dirname(dirname(__FILE__))) . '/class/project.class.php';
|
|
|
|
/**
|
|
|
|
title=测试 projectModel::suspend();
|
|
cid=1
|
|
pid=1
|
|
|
|
暂停id为56状态是doing的项目 >> 1
|
|
暂停id为73状态是suspended的项目 >> 0
|
|
暂停id为74状态是closed的项目 >> 0
|
|
|
|
*/
|
|
|
|
$t = new Project('admin');
|
|
|
|
r($t->checkStatusStop(56)) && p() && e('1'); // 暂停id为56状态是doing的项目
|
|
r($t->checkStatusStop(73)) && p() && e('0'); // 暂停id为73状态是suspended的项目
|
|
r($t->checkStatusStop(74)) && p() && e('0'); // 暂停id为74状态是closed的项目
|
|
system("./ztest init"); |