You are here

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

File

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

Class

RouteWrapperTest
@group DMU.Routing

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Routing\Drupal7

Code

public function testIsLocalAction() {
  $wrapper = $this
    ->getMockRouteWrapper();
  $this
    ->assertFalse($wrapper
    ->isLocalAction());
  $wrapper['type'] = 'MENU_LOCAL_ACTION';
  $this
    ->assertTrue($wrapper
    ->isLocalAction());
}