* [unittest] Modify the unit test file of docModel::createLib.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user