You are here

public function GatherContentUploadTest::testProcessPanesMetatagMultilang in GatherContent 8.5

Tests field manipulation for metatag content.

File

gathercontent_upload/tests/src/Kernel/GatherContentUploadTest.php, line 236

Class

GatherContentUploadTest
@coversDefaultClass \Drupal\gathercontent_upload\Export\Exporter @group gathercontent_upload

Namespace

Drupal\Tests\gathercontent_upload\Kernel

Code

public function testProcessPanesMetatagMultilang() {
  $node = $this
    ->getMetatagMultilangNode();
  $gcItem = $this
    ->getMetatagMultilangItem();
  $mapping = $this
    ->getMapping($gcItem);
  $modifiedItem = $this->exporter
    ->processGroups($node, $mapping);
  $this
    ->assertNotEmpty($modifiedItem);
  $this
    ->assertItemChangedMetatagMultilang($modifiedItem, $node);
}