You are here

public function EntityReferenceNormalizerTest::testDefaults in Commerce Cart API 8

Tests default configuration.

File

tests/src/Kernel/Normalizer/EntityReferenceNormalizerTest.php, line 153

Class

EntityReferenceNormalizerTest
@group commerce_cart_api

Namespace

Drupal\Tests\commerce_cart_api\Kernel\Normalizer

Code

public function testDefaults() {
  $this
    ->assertEntityReferenceNormalization([], [
    [
      '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',
    ],
  ]);
}