From 6d671338b60058561d26bc6c9364c5bdf5226091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 8 Nov 2023 10:43:14 +0100 Subject: [PATCH] fix: Fix tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- tests/integration/import/ImportExportTest.php | 2 +- tests/unit/Db/CardTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/import/ImportExportTest.php b/tests/integration/import/ImportExportTest.php index 7b159b7e9..e7d9cbdf1 100644 --- a/tests/integration/import/ImportExportTest.php +++ b/tests/integration/import/ImportExportTest.php @@ -133,7 +133,7 @@ class ImportExportTest extends \Test\TestCase { ); } - public static function writeArrayStructure(string $prefix = '', array $array = [], array $skipKeyList = ['id', 'boardId', 'cardId', 'stackId', 'ETag', 'permissions', 'shared', 'version']): string { + public static function writeArrayStructure(string $prefix = '', array $array = [], array $skipKeyList = ['id', 'boardId', 'cardId', 'stackId', 'ETag', 'permissions', 'shared', 'version', 'done']): string { $output = ''; $arrayIsList = array_keys($array) === range(0, count($array) - 1); foreach ($array as $key => $value) { diff --git a/tests/unit/Db/CardTest.php b/tests/unit/Db/CardTest.php index 3a8851993..794255a46 100644 --- a/tests/unit/Db/CardTest.php +++ b/tests/unit/Db/CardTest.php @@ -41,7 +41,7 @@ class CardTest extends TestCase { $card->setOwner("admin"); $card->setOrder(12); $card->setArchived(false); - $card->setDone(false); + $card->setDone(null); // TODO: relation shared labels acl return $card; } @@ -88,7 +88,7 @@ class CardTest extends TestCase { 'commentsCount' => 0, 'lastEditor' => null, 'ETag' => $card->getETag(), - 'done' => false, + 'done' => null, ], (new CardDetails($card))->jsonSerialize()); } public function testJsonSerializeLabels() {