+ Move unit test from test directory to each module.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(__FILE__, 5) . "/test/lib/init.php";
|
||||
|
||||
/**
|
||||
|
||||
title=测试 adminModel::getExtensionsByAPI();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
查询断网情况插件数量 >> 3
|
||||
|
||||
*/
|
||||
|
||||
global $tester;
|
||||
$tester->loadModel('admin');
|
||||
$result = $tester->admin->getExtensionsByAPI('extension', 6, false);
|
||||
|
||||
r(count($result)) && p() && e('3'); // 查询断网情况插件数量
|
||||
Reference in New Issue
Block a user