You are here

protected function NodeTitleBuiltinFailoverTest::getNodeBodyValue 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::getNodeBodyValue()

Get HTML to use for node body.

Return value

string The value to use for the node body.

1 call to NodeTitleBuiltinFailoverTest::getNodeBodyValue()
NodeTitleBuiltinFailoverTest::testNodeTitleShowtextFailover in tests/src/Functional/NodeTitleBuiltinFailoverTest.php
Asserts that showtext failover option is functional.

File

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

Class

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

Namespace

Drupal\Tests\freelinking\Functional

Code

protected function getNodeBodyValue() {
  return <<<EOF
      <ul>
        <li>Nodetitle:      [[nodetitle:First page]]</li>
        <li>Nodetitle:      [[nodetitle:Second page]]</li>
        <li>Nodetitle:      [[nodetitle:Third page]]</li>
      </ul>
EOF;
}