You are here

protected function NodeTitleBuiltinFailoverTest::setUp in Freelinking 4.0.x

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/NodeTitleBuiltinFailoverTest.php \Drupal\Tests\freelinking\Functional\NodeTitleBuiltinFailoverTest::setUp()

Overrides FreelinkingBrowserTestBase::setUp

File

tests/src/Functional/NodeTitleBuiltinFailoverTest.php, line 15

Class

NodeTitleBuiltinFailoverTest
Tests the "showtext" builtin failover plugin with node title.

Namespace

Drupal\Tests\freelinking\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $edit = [
    'filters[freelinking][status]' => 1,
    'filters[freelinking][weight]' => 0,
    'filters[freelinking][settings][plugins][nodetitle][enabled]' => 1,
    'filters[freelinking][settings][plugins][nodetitle][settings][failover]' => 'showtext',
    'filters[filter_url][weight]' => 1,
    'filters[filter_html][weight]' => 2,
    'filters[filter_autop][weight]' => 3,
    'filters[filter_htmlcorrector][weight]' => 4,
  ];
  $this
    ->updateFilterSettings('plain_text', $edit);
}