38 lines
1.9 KiB
PHP
Executable file
38 lines
1.9 KiB
PHP
Executable file
#!/usr/bin/env php
|
||
<?php
|
||
|
||
/**
|
||
|
||
title=测试 storyModel->batchChangeModule();
|
||
cid=18467
|
||
|
||
- 批量修改6个需求的模块,查看被修改模块的需求数量 @6
|
||
- 批量修改6个需求的模块,查看需求1修改后的模块ID第1条的module属性 @1366
|
||
- 批量修改6个需求的模块,查看需求2修改后的模块ID第2条的module属性 @1366
|
||
- 批量修改6个需求的模块,查看需求3修改后的模块ID第3条的module属性 @1366
|
||
- 批量修改6个需求的模块,查看需求4修改后的模块ID第4条的module属性 @1366
|
||
- 批量修改6个需求的模块,查看需求5修改后的模块ID第5条的module属性 @1366
|
||
- 批量修改6个需求的模块,查看需求6修改后的模块ID第6条的module属性 @1366
|
||
|
||
*/
|
||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||
su('admin');
|
||
|
||
$story = zenData('story');
|
||
$story->version->range(1);
|
||
$story->gen(10);
|
||
zenData('storyspec')->gen(50);
|
||
|
||
$story = new storyModelTest();
|
||
$storyIdList = array(1, 2, 3, 4, 5, 6);
|
||
$stories = $story->batchChangeModuleTest($storyIdList, 1366);
|
||
|
||
r(count($stories)) && p() && e('6'); // 批量修改6个需求的模块,查看被修改模块的需求数量
|
||
r($stories) && p('1:module') && e('1366'); // 批量修改6个需求的模块,查看需求1修改后的模块ID
|
||
r($stories) && p('2:module') && e('1366'); // 批量修改6个需求的模块,查看需求2修改后的模块ID
|
||
r($stories) && p('3:module') && e('1366'); // 批量修改6个需求的模块,查看需求3修改后的模块ID
|
||
r($stories) && p('4:module') && e('1366'); // 批量修改6个需求的模块,查看需求4修改后的模块ID
|
||
r($stories) && p('5:module') && e('1366'); // 批量修改6个需求的模块,查看需求5修改后的模块ID
|
||
r($stories) && p('6:module') && e('1366'); // 批量修改6个需求的模块,查看需求6修改后的模块ID
|