You are here

public function FreelinkingTest::testShortTip in Freelinking 8.3

Same name and namespace in other branches
  1. 4.0.x tests/src/Unit/Plugin/Filter/FreelinkingTest.php \Drupal\Tests\freelinking\Unit\Plugin\Filter\FreelinkingTest::testShortTip()

Asserts that a short tip is returned.

File

tests/src/Unit/Plugin/Filter/FreelinkingTest.php, line 108

Class

FreelinkingTest
Tests the freelinking plugin.

Namespace

Drupal\Tests\freelinking\Unit\Plugin\Filter

Code

public function testShortTip() {
  $expected = new TranslatableMarkup('Freelinking helps you easily create HTML links. Links take the form of <code>[[indicator:target|Title]].</code>', [], [], $this->translationInterfaceMock);
  $this
    ->assertEquals($expected, $this->filter
    ->tips());
}