NEW: Add close date and user for projects.

This commit is contained in:
Laurent Destailleur
2015-03-04 16:28:29 +01:00
parent 4c1d51bd39
commit 5335a6affa
4 changed files with 24 additions and 5 deletions

View File

@@ -189,7 +189,7 @@ class ProjectTest extends PHPUnit_Framework_TestCase
}
/**
* testProjectOther
* testProjectClose
*
* @param Project $localobject Project
* @return int
@@ -205,6 +205,10 @@ class ProjectTest extends PHPUnit_Framework_TestCase
$langs=$this->savlangs;
$db=$this->savdb;
$result=$localobject->setClose($user);
print __METHOD__." id=".$localobject->id." result=".$result."\n";
$this->assertLessThan($result, 0);
return $localobject->id;
}
@@ -214,7 +218,7 @@ class ProjectTest extends PHPUnit_Framework_TestCase
* @param int $id Id of project
* @return void
*
* @depends testProjectOther
* @depends testProjectClose
* The depends says test is run only if previous is ok
*/
public function testProjectDelete($id)