You are here

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

File

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

Class

RouteWrapperTest
@group DMU.Routing

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Routing\Drupal7

Code

public function testIsPermissionBased() {
  $wrapper = $this
    ->getMockRouteWrapper();
  $this
    ->assertFalse($wrapper
    ->isPermissionBased());
  $wrapper['access callback'] = 'user_access';
  $this
    ->assertTrue($wrapper
    ->isPermissionBased());
}