Add timer for subtasks and remove settings for subtask time tracking
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user