fix: Fix tests

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-11-08 10:43:14 +01:00
parent 1462d6b7e2
commit 6d671338b6
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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() {