Fix duedate tests

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr
2022-10-19 14:47:10 +02:00
committed by Julius Härtl
parent 2c3113334a
commit 816a8c08f0
2 changed files with 1 additions and 9 deletions

View File

@@ -117,14 +117,6 @@ class CardTest extends TestCase {
], (new CardDetails($card))->jsonSerialize());
}
public function testMysqlDateFallback() {
$date = new DateTime();
$card = new Card();
$card->setDuedate($date->format('c'));
$card->setDatabaseType('mysql');
$this->assertEquals($date->format('Y-m-d H:i:s'), $card->getDuedate(false));
}
public function testJsonSerializeAsignedUsers() {
$card = $this->createCard();
$card->setAssignedUsers([ 'user1' ]);

View File

@@ -221,7 +221,7 @@ class CardServiceTest extends TestCase {
$this->assertEquals('text', $actual->getType());
$this->assertEquals(999, $actual->getOrder());
$this->assertEquals('foo', $actual->getDescription());
$this->assertEquals('2017-01-01T00:00:00+00:00', $actual->getDuedate());
$this->assertEquals(new \DateTime('2017-01-01T00:00:00+00:00'), $actual->getDuedate());
}
public function testUpdateArchived() {