diff --git a/module/doc/test/lib/doc.unittest.class.php b/module/doc/test/lib/doc.unittest.class.php index 610f63b0c7..2e6cdec7ca 100644 --- a/module/doc/test/lib/doc.unittest.class.php +++ b/module/doc/test/lib/doc.unittest.class.php @@ -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; diff --git a/module/doc/test/model/createlib.php b/module/doc/test/model/createlib.php index 2241299872..cbe70c3cdc 100755 --- a/module/doc/test/model/createlib.php +++ b/module/doc/test/model/createlib.php @@ -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');