CodeExplorer getTrackingCodes example
static::
assertSame($billingAddress->
getCountryId(),
$order->
getBillingAddress()->
getCountryId());
static::
assertSame($billingAddress->
getCountryStateId(),
$order->
getBillingAddress()->
getCountryStateId());
static::
assertNotNull($deliveries =
$order->
getDeliveries());
static::
assertNotNull($delivery =
$deliveries->
first());
$shippingAddress =
$delivery->
getShippingOrderAddress();
static::
assertNotNull($shippingAddress);
static::
assertNotEmpty($serialized['deliveries'
]);
static::
assertNotEmpty($serialized['deliveries'
]['shippingOrderAddress'
]);
static::
assertSame($serialized['deliveries'
]['trackingCodes'
],
implode('|',
$delivery->
getTrackingCodes()));
static::
assertSame($serialized['deliveries'
]['shippingOrderAddress'
]['street'
],
$shippingAddress->
getStreet());
static::
assertSame($serialized['deliveries'
]['shippingOrderAddress'
]['zipcode'
],
$shippingAddress->
getZipcode());
static::
assertSame($serialized['deliveries'
]['shippingOrderAddress'
]['city'
],
$shippingAddress->
getCity());
static::
assertSame($serialized['deliveries'
]['shippingOrderAddress'
]['company'
],
$shippingAddress->
getCompany());
static::
assertSame($serialized['deliveries'
]['shippingOrderAddress'
]['department'
],
$shippingAddress->
getDepartment());
static::
assertSame($serialized['deliveries'
]['shippingOrderAddress'
]['countryId'
],
$shippingAddress->
getCountryId());
static::
assertSame($serialized['deliveries'
]['shippingOrderAddress'
]['countryStateId'
],
$shippingAddress->
getCountryStateId());
static::
assertNotNull($lineItems =
$order->
getLineItems());
static::
assertNotNull($lineItem =
$lineItems->
first());