You are here

protected function ParagraphsTest::setContentHubEntitySettings in Acquia Content Hub 8

Configures Entity Settings for Node and Paragraphs.

1 call to ParagraphsTest::setContentHubEntitySettings()
ParagraphsTest::testParagraphsCdf in tests/src/Functional/ParagraphsTest.php
Tests acquia_contenthub_cdf format for paragraphs entities inside a node.

File

tests/src/Functional/ParagraphsTest.php, line 70

Class

ParagraphsTest
Tests paragraphs support in Acquia Content Hub module.

Namespace

Drupal\Tests\acquia_contenthub\Functional

Code

protected function setContentHubEntitySettings() {
  $this
    ->drupalGet('admin/config/services/acquia-contenthub/configuration');
  $edit = [
    'entities[node][ch_node_with_paragraphs][enable_index]' => 1,
    'entities[node][ch_node_with_paragraphs][enable_viewmodes]' => 1,
    'entities[paragraph][addresses][enable_index]' => 1,
    'entities[paragraph][client_data][enable_index]' => 1,
  ];
  $this
    ->drupalPostForm(NULL, $edit, $this
    ->t('Save configuration'));
  $this
    ->assertResponse(200);
}