You are here

public function EntityEmbedFilterDisabledIntegrationsTest::testDisabledIntegrations in Entity Embed 8

@covers \Drupal\entity_embed\Plugin\entity_embed\EntityEmbedDisplay\EntityReferenceFieldFormatter::disableContextualLinks @covers \Drupal\entity_embed\Plugin\entity_embed\EntityEmbedDisplay\EntityReferenceFieldFormatter::disableQuickEdit @dataProvider providerDisabledIntegrations

File

tests/src/Kernel/EntityEmbedFilterDisabledIntegrationsTest.php, line 40

Class

EntityEmbedFilterDisabledIntegrationsTest
Tests that entity embed disables certain integrations.

Namespace

Drupal\Tests\entity_embed\Kernel

Code

public function testDisabledIntegrations($integration_detection_selector) {
  $text = $this
    ->createEmbedCode([
    'data-entity-type' => 'node',
    'data-entity-uuid' => static::EMBEDDED_ENTITY_UUID,
    'data-view-mode' => 'teaser',
  ]);
  $this
    ->applyFilter($text);
  $this
    ->assertCount(0, $this
    ->cssSelect($integration_detection_selector));
}