You are here

public function BuiltinTest::testIsHidden in Freelinking 8.3

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

Asserts that isHidden method returns TRUE.

File

tests/src/Unit/Plugin/freelinking/BuiltinTest.php, line 127

Class

BuiltinTest
Tests the freelinking builtin plugin.

Namespace

Drupal\Tests\freelinking\Unit\Plugin\freelinking

Code

public function testIsHidden() {
  $accountProphet = $this
    ->prophesize('\\Drupal\\Core\\Session\\AccountProxyInterface');
  $plugin = new Builtin($this->configuration, $this->id, $this->definition, $accountProphet
    ->reveal());
  $this
    ->assertTrue($plugin
    ->isHidden());
}