You are here

public function EntityEmbedCollectorTest::providerTestExtractEmbeddedEntities in Dependency Calculation 8

Data provider for testExtractEmbeddedEntities().

File

tests/src/Kernel/EventSubscriber/DependencyCollector/EntityEmbedCollectorTest.php, line 109

Class

EntityEmbedCollectorTest
Class EntityEmbedCollectorTest.

Namespace

Drupal\Tests\depcalc\Kernel\EventSubscriber\DependencyCollector

Code

public function providerTestExtractEmbeddedEntities() {
  return [
    'embed_node' => [
      [
        [
          'data-entity-type' => 'node',
          'data-entity-uuid' => static::EMBEDDED_ENTITY_UUID,
          'data-view-mode' => 'teaser',
        ],
      ],
    ],
    'embed_multiple_node' => [
      [
        [
          'data-entity-type' => 'node',
          'data-entity-uuid' => static::EMBEDDED_ENTITY_UUID,
          'data-view-mode' => 'teaser',
        ],
        [
          'data-entity-type' => 'node',
          'data-entity-uuid' => static::EMBEDDED_ENTITY_UUID_2,
          'data-view-mode' => 'teaser',
        ],
      ],
    ],
  ];
}