You are here

public function DrupalMediaEmbedCollectorTest::providerTestExtractEmbeddedMediaEntities in Dependency Calculation 8

Data provider for testExtractEmbeddedMediaEntities().

File

tests/src/Kernel/EventSubscriber/DependencyCollector/DrupalMediaEmbedCollectorTest.php, line 120

Class

DrupalMediaEmbedCollectorTest
Class DrupalMediaEmbedCollectorTest.

Namespace

Drupal\Tests\depcalc\Kernel\EventSubscriber\DependencyCollector

Code

public function providerTestExtractEmbeddedMediaEntities() {
  return [
    'embed_media' => [
      [
        [
          'data-entity-type' => 'media',
          'data-entity-uuid' => static::EMBEDDED_ENTITY_UUID,
        ],
      ],
    ],
    'embed_multiple_media' => [
      [
        [
          'data-entity-type' => 'media',
          'data-entity-uuid' => static::EMBEDDED_ENTITY_UUID,
        ],
        [
          'data-entity-type' => 'media',
          'data-entity-uuid' => static::EMBEDDED_ENTITY_UUID_2,
        ],
      ],
    ],
  ];
}