/**
* Tests the access method.
*/
public function testAccess() { $route_match =
$this->
createMock('Drupal\Core\Routing\RouteMatchInterface'
);
$this->controllerResolver->
expects($this->
exactly(3
)) ->
method('getControllerFromDefinition'
) ->
willReturnMap([ ['\Drupal\Tests\Core\Access\TestController::accessDeny',
[new TestController(), 'accessDeny'
]],
['\Drupal\Tests\Core\Access\TestController::accessAllow',
[new TestController(), 'accessAllow'
]],
['\Drupal\Tests\Core\Access\TestController::accessParameter',
[new TestController(), 'accessParameter'
]],
]);
$resolver0 =
$this->
createMock('Drupal\Component\Utility\ArgumentsResolverInterface'
);
$resolver0->
expects($this->
once()) ->
method('getArguments'
) ->
willReturn([]);
$resolver1 =
$this->
createMock('Drupal\Component\Utility\ArgumentsResolverInterface'
);
$resolver1->
expects($this->
once()) ->
method('getArguments'
)