Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 72949dc

Browse files
authored
Merge pull request #723 from commercetools/fix-failing-tests
updated some fields of the order and store to fix some tests that were failing
2 parents 1d5143e + 2deff89 commit 72949dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Core/Model/Order/Order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function fieldDefinitions()
162162
'syncInfo' => [static::TYPE => SyncInfoCollection::class],
163163
'returnInfo' => [static::TYPE => ReturnInfoCollection::class, static::OPTIONAL => true],
164164
'discountCodes' => [static::TYPE => DiscountCodeInfoCollection::class, static::OPTIONAL => true],
165-
'lastMessageSequenceNumber' => [static::TYPE => 'int'],
165+
'lastMessageSequenceNumber' => [static::TYPE => 'int', static::OPTIONAL => true],
166166
'cart' => [static::TYPE => CartReference::class, static::OPTIONAL => true],
167167
'custom' => [static::TYPE => CustomFieldObject::class, static::OPTIONAL => true],
168168
'state' => [static::TYPE => StateReference::class, static::OPTIONAL => true],

src/Core/Model/Store/Store.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public function fieldDefinitions()
5959
static::TYPE => DateTime::class,
6060
static::DECORATOR => DateTimeDecorator::class
6161
],
62-
'languages' => [static::TYPE => 'array', static::OPTIONAL => true],
62+
'languages' => [static::TYPE => 'array'],
6363
'distributionChannels' => [static::TYPE => 'array'],
64-
'supplyChannels' => [static::TYPE => 'array', static::OPTIONAL => true],
65-
'productSelections' => [static::TYPE => 'array', static::OPTIONAL => true],
64+
'supplyChannels' => [static::TYPE => 'array'],
65+
'productSelections' => [static::TYPE => 'array'],
6666
'custom' => [static::TYPE => CustomFieldObject::class, static::OPTIONAL => true],
6767
];
6868
}

0 commit comments

Comments
 (0)