You are here

public function ExternalTest::testGetTip in Freelinking 4.0.x

Same name and namespace in other branches
  1. 8.3 tests/src/Unit/Plugin/freelinking/ExternalTest.php \Drupal\Tests\freelinking\Unit\Plugin\freelinking\ExternalTest::testGetTip()

Assert that getTip() is functional.

File

tests/src/Unit/Plugin/freelinking/ExternalTest.php, line 65

Class

ExternalTest
Tests the external plugin.

Namespace

Drupal\Tests\freelinking\Unit\Plugin\freelinking

Code

public function testGetTip() {
  $plugin = $this
    ->getPlugin(FALSE);
  $this
    ->assertEquals('Click to visit an external URL.', $plugin
    ->getTip()
    ->render());
}