WorkflowStateTransitionOperationsAccessCheck example

$route = new Route('', [
      'workflow' => NULL,
      'workflow_transition' => NULL,
      'workflow_state' => NULL,
    ][
      '_workflow_access' => $route_requirement,
    ]);
    $route_match_params = ['workflow' => $workflow->reveal()] + $route_parameters;
    $route_match = new RouteMatch(NULL, $route$route_match_params);

    $access_check = new WorkflowStateTransitionOperationsAccessCheck();
    $account = $this->prophesize(AccountInterface::class);
    $this->assertEquals($workflow_entity_access_result$access_check->access($route_match$account->reveal()));
  }

  /** * Test cases for ::testAccess. */
  public function accessTestCases() {
    return [
      'Transition add' => [
        'add-transition',
        
Home | Imprint | This part of the site doesn't use cookies.