* Add compile auto test.

This commit is contained in:
zhouxudong
2022-05-13 00:52:55 +00:00
parent c902075102
commit ffc0cffc90
2 changed files with 0 additions and 19 deletions

View File

@@ -13,7 +13,6 @@ pid=1
*/
$compile = new compileTest();
r($compile->createByJobTest('1', '123')) && p('0:name') && e('这是一个Job1'); //检查是否可以拿到通过id为1的job数据创建的compile。
r($compile->createByJobTest('3', '123')) && p('0:name') && e('0'); //检查是否可以拿到通过不存在的job数据创建的compile。
system("../../ztest init");

View File

@@ -1,18 +0,0 @@
#!/usr/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/compile.class.php';
su('admin');
/**
title=测试 compileModel->getSuccessJobs();
cid=1
pid=1
*/
$compile = new compileTest();
r($compile->getSuccessJobsTest('1,2')) && p('1') && e('1'); //检查是否能拿取到数据
r($compile->getSuccessJobsTest('3,4')) && p('') && e('0'); //检查传一个不存在的jobidlist会返回什么