@@ -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 = '';
|
$output = '';
|
||||||
$arrayIsList = array_keys($array) === range(0, count($array) - 1);
|
$arrayIsList = array_keys($array) === range(0, count($array) - 1);
|
||||||
foreach ($array as $key => $value) {
|
foreach ($array as $key => $value) {
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class CardTest extends TestCase {
|
|||||||
$card->setOwner("admin");
|
$card->setOwner("admin");
|
||||||
$card->setOrder(12);
|
$card->setOrder(12);
|
||||||
$card->setArchived(false);
|
$card->setArchived(false);
|
||||||
$card->setDone(false);
|
$card->setDone(null);
|
||||||
// TODO: relation shared labels acl
|
// TODO: relation shared labels acl
|
||||||
return $card;
|
return $card;
|
||||||
}
|
}
|
||||||
@@ -88,7 +88,7 @@ class CardTest extends TestCase {
|
|||||||
'commentsCount' => 0,
|
'commentsCount' => 0,
|
||||||
'lastEditor' => null,
|
'lastEditor' => null,
|
||||||
'ETag' => $card->getETag(),
|
'ETag' => $card->getETag(),
|
||||||
'done' => false,
|
'done' => null,
|
||||||
], (new CardDetails($card))->jsonSerialize());
|
], (new CardDetails($card))->jsonSerialize());
|
||||||
}
|
}
|
||||||
public function testJsonSerializeLabels() {
|
public function testJsonSerializeLabels() {
|
||||||
|
|||||||
Reference in New Issue
Block a user