Add timer for subtasks and remove settings for subtask time tracking

This commit is contained in:
Frederic Guillot
2015-06-24 20:39:06 -04:00
parent 58c96b8c4e
commit 6efac784fc
41 changed files with 297 additions and 79 deletions

View File

@@ -6,6 +6,18 @@ use Helper\Datetime;
class DatetimeHelperTest extends Base
{
public function testAge()
{
$h = new Datetime($this->container);
$this->assertEquals('<15m', $h->age(0, 30));
$this->assertEquals('<30m', $h->age(0, 1000));
$this->assertEquals('<1h', $h->age(0, 3000));
$this->assertEquals('~2h', $h->age(0, 2*3600));
$this->assertEquals('1d', $h->age(0, 30*3600));
$this->assertEquals('2d', $h->age(0, 65*3600));
}
public function testGetDayHours()
{
$h = new Datetime($this->container);