znt/module/tree/test/zen/updateworkflowlang.php

37 lines
1.6 KiB
PHP
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env php
<?php
/**
title=测试 treeZen::updateWorkflowLang();
timeout=0
cid=19400
- 执行treeTest模块的updateWorkflowLangTest方法参数是'datasource_1' 属性manageDatasource_1Child @模块维护
- 执行treeTest模块的updateWorkflowLangTest方法参数是'workflow_1' 属性manageWorkflow_1Child @模块维护
- 执行treeTest模块的updateWorkflowLangTest方法参数是'single' 属性manage @维护模块
- 执行treeTest模块的updateWorkflowLangTest方法参数是'' 属性manage @维护模块
- 执行treeTest模块的updateWorkflowLangTest方法参数是'datasource_999' 属性manageDatasource_999Child @模块维护
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/treezen.unittest.class.php';
su('admin');
$data = zenData('workflowdatasource');
$data->id->range('1-5');
$data->name->prefix('数据源')->range('1-5');
$data->createdDate->range("20260109 130000")->type('timestamp')->format('YYYY-MM-DD');
$data->editedDate->range("20260109 130000")->type('timestamp')->format('YYYY-MM-DD');
$data->gen(5);
$treeTest = new treeTest();
r($treeTest->updateWorkflowLangTest('single')) && p('manage') && e('维护模块');
r($treeTest->updateWorkflowLangTest('')) && p('manage') && e('维护模块');
r($treeTest->updateWorkflowLangTest('datasource_1')) && p('manageDatasource_1Child') && e('数据源1');
r($treeTest->updateWorkflowLangTest('workflow_1')) && p('manageWorkflow_1Child') && e('维护分类');
r($treeTest->updateWorkflowLangTest('datasource_999')) && p('manageDatasource_999Child') && e('维护分类');