* [unittest] Modify the unit test file of docModel::createLib.

This commit is contained in:
xieqiyu
2025-06-19 00:44:50 +00:00
parent 38621880d2
commit 778eec3f4a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class docTest
*/
public function createLibTest(array $param, string $type = '', string $libType = ''): object|array
{
$createFields = array('type' => '', 'name' => '', 'acl' => '', 'product' => 0, 'project' => 0, 'execution' => 0);
$createFields = array('type' => '', 'name' => '', 'acl' => '', 'product' => 0, 'project' => 0, 'execution' => 0, 'parent' => 0);
$lib = new stdClass();
foreach($createFields as $field => $defaultValue) $lib->{$field} = $defaultValue;
+1
View File
@@ -44,6 +44,7 @@ cid=1
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/doc.unittest.class.php';
zenData('project')->loadYaml('execution')->gen(100);
zenData('user')->gen(5);
su('admin');