* [unittest] Fix dev getModuleExtPath method test.
This commit is contained in:
@@ -8,12 +8,27 @@ title=测试 devModel::getModuleExtPath();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
获取扩展的模块路径 >> xuan
|
||||
- 获取开源版扩展的模块路径 @xuan
|
||||
- 检查 xuan 扩展路径 @1
|
||||
- 获取旗舰版扩展的模块路径 @common
|
||||
- 检查旗舰版 common 扩展路径 @1
|
||||
- 检查 IPD 版 common 扩展路径 @1
|
||||
|
||||
*/
|
||||
|
||||
global $tester;
|
||||
$tester->loadModel('dev');
|
||||
$extPath = $tester->dev->getModuleExtPath();
|
||||
|
||||
r(key($extPath)) && p() && e('xuan'); // 获取扩展的模块路径
|
||||
$tester->dev->config->edition = 'open';
|
||||
$extPath = $tester->dev->getModuleExtPath();
|
||||
r(key($extPath)) && p() && e('xuan'); // 获取开源版扩展的模块路径
|
||||
r(strpos($extPath['xuan'], DS . 'extension' . DS . 'xuan' . DS) !== false) && p() && e('1'); // 检查 xuan 扩展路径
|
||||
|
||||
$tester->dev->config->edition = 'max';
|
||||
$extPath = $tester->dev->getModuleExtPath();
|
||||
r(key($extPath)) && p() && e('common'); // 获取旗舰版扩展的模块路径
|
||||
r(strpos($extPath['common'], DS . 'extension' . DS . 'max' . DS) !== false) && p() && e('1'); // 检查旗舰版 common 扩展路径
|
||||
|
||||
$tester->dev->config->edition = 'ipd';
|
||||
$extPath = $tester->dev->getModuleExtPath();
|
||||
r(strpos($extPath['common'], DS . 'extension' . DS . 'ipd' . DS) !== false) && p() && e('1'); // 检查 IPD 版 common 扩展路径
|
||||
|
||||
Reference in New Issue
Block a user