public function BuiltinTest::testGetTip in Freelinking 8.3
Same name and namespace in other branches
- 4.0.x tests/src/Unit/Plugin/freelinking/BuiltinTest.php \Drupal\Tests\freelinking\Unit\Plugin\freelinking\BuiltinTest::testGetTip()
Asserts that getTip returns the correct string.
File
- tests/
src/ Unit/ Plugin/ freelinking/ BuiltinTest.php, line 68
Class
- BuiltinTest
- Tests the freelinking builtin plugin.
Namespace
Drupal\Tests\freelinking\Unit\Plugin\freelinkingCode
public function testGetTip() {
$accountProphet = $this
->prophesize('\\Drupal\\Core\\Session\\AccountProxyInterface');
$plugin = new Builtin($this->configuration, $this->id, $this->definition, $accountProphet
->reveal());
$this
->assertEquals('Redact, show text only, or display the indicator', $plugin
->getTip()
->render());
}