27 lines
778 B
PHP
Executable File
27 lines
778 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
|
include dirname(__FILE__, 2) . '/lib/repo.unittest.class.php';
|
|
|
|
/**
|
|
|
|
title=测试 repoModel->unlink();
|
|
timeout=0
|
|
cid=1
|
|
|
|
- 取消关联需求 @success
|
|
- 取消关联bug @success
|
|
- 取消关联任务 @success
|
|
|
|
*/
|
|
|
|
zenData('repo')->loadYaml('repo', true)->gen(4);
|
|
zenData('repohistory')->loadYaml('repohistory')->gen(1);
|
|
|
|
$revision = 'c808480afe22d3a55d94e91c59a8f3170212ade0';
|
|
$links = array(1, 2);
|
|
|
|
$repo = new repoTest();
|
|
r($repo->unlinkTest(1, $revision, 'story', 1)) && p('') && e('success'); //取消关联需求
|
|
r($repo->unlinkTest(1, $revision, 'bug', 1)) && p('') && e('success'); //取消关联bug
|
|
r($repo->unlinkTest(1, $revision, 'task', 1)) && p('') && e('success'); //取消关联任务
|