Change-Id: I923a2d11cad72d0b321e697eb7b784d59f2f5b99
Reviewed-on: http://gerrit.tine20.com/customers/3460
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
$accessLog = $this->_uit->setLogout();
- $this->assertEquals(Tinebase_DateTime::now()->toString(), $accessLog->lo->toString(),
- 'logout time mismatch/empty: ' . print_r($accessLog, true));
+ $now = Tinebase_DateTime::now();
+ $this->assertTrue($now->toString() === $accessLog->lo->toString() || $now->subSecond(1)->toString() === $accessLog->lo->toString(),
+ 'logout time mismatch/empty: ' . print_r($accessLog->toArray(), true));
}
}