public function EntityReferenceNormalizerTest::testWithProductId in Commerce Cart API 8
Tests adding product ID
File
- tests/
src/ Kernel/ Normalizer/ EntityReferenceNormalizerTest.php, line 170
Class
- EntityReferenceNormalizerTest
- @group commerce_cart_api
Namespace
Drupal\Tests\commerce_cart_api\Kernel\NormalizerCode
public function testWithProductId() {
$this
->assertEntityReferenceNormalization([
'order_items',
'purchased_entity',
'product_id',
], [
[
'order_items',
0,
'uuid',
],
[
'order_items',
0,
'purchased_entity',
0,
'uuid',
],
[
'order_items',
0,
'purchased_entity',
0,
'product_id',
0,
'uuid',
],
], [
[
'order_items',
0,
'purchased_entity',
0,
'attribute_color',
0,
'uuid',
],
]);
}