* [test] Modify the unit test of branch module.

This commit is contained in:
hufangzhou
2024-07-12 13:30:29 +08:00
committed by 谢杞钰
parent 9ca6cb51b6
commit c6affea200
@@ -381,14 +381,15 @@ class branchTest
*/
public function changeBranchLanguageTest($productID)
{
global $lang;
global $tester;
global $app;
$filePath = dirname(__FILE__, 2) . DS . 'lang' . DS . 'zh-cn.php';
include $filePath;
$app::$loadedLangs = array();
$app->loadLang('branch');
$this->objectModel->changeBranchLanguage($productID);
$createLang = $lang->branch->create;
$createLang = $tester->lang->branch->create;
if(dao::isError()) return dao::getError();