You are here

public function GatherContentUploadTest::testProcessGroups in GatherContent 8.5

Tests the field manipulation.

File

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

Class

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

Namespace

Drupal\Tests\gathercontent_upload\Kernel

Code

public function testProcessGroups() {
  $node = $this
    ->getSimpleNode();
  $gcItem = $this
    ->getSimpleItem();
  $mapping = $this
    ->getMapping($gcItem);
  $modifiedItem = $this->exporter
    ->processGroups($node, $mapping);
  $this
    ->assertNotEmpty($modifiedItem);
  $this
    ->assertItemChanged($modifiedItem, $node);
}