You are here

public function RouteWrapperTest::testIsLink in Drupal 7 to 8/9 Module Upgrader 8

File

tests/src/Unit/Routing/Drupal7/RouteWrapperTest.php, line 76

Class

RouteWrapperTest
@group DMU.Routing

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Routing\Drupal7

Code

public function testIsLink() {
  $wrapper = $this
    ->getMockRouteWrapper();
  $this
    ->assertFalse($wrapper
    ->isLink());
  $wrapper['type'] = 'MENU_NORMAL_ITEM';
  $this
    ->assertTrue($wrapper
    ->isLink());
}