You are here

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

File

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

Class

RouteWrapperTest
@group DMU.Routing

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Routing\Drupal7

Code

public function testIsAbsoluteAccess() {
  $wrapper = $this
    ->getMockRouteWrapper();
  $this
    ->assertFalse($wrapper
    ->isAbsoluteAccess());
  $wrapper['access callback'] = TRUE;
  $this
    ->assertTrue($wrapper
    ->isAbsoluteAccess());
  $wrapper['access callback'] = FALSE;
  $this
    ->assertTrue($wrapper
    ->isAbsoluteAccess());
}