protected function NodeTitleBuiltinFailoverTest::setUp in Freelinking 8.3
Same name and namespace in other branches
- 4.0.x 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\FunctionalCode
protected function setUp() {
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);
}