public function testAddRouteParameters_explicitStepNumber()
 {
     $flow = $this->getFlowWithMockedMethods(array('getName'));
     $instanceId = 'xyz';
     $flow->setInstanceId($instanceId);
     $actualParameters = $this->util->addRouteParameters(array('key' => 'value'), $flow, 5);
     $this->assertEquals(array('key' => 'value', 'instance' => $instanceId, 'step' => 5), $actualParameters);
 }
 /**
  * Adds route parameters for dynamic step navigation.
  * @param array $parameters Current route parameters.
  * @param FormFlow $flow The flow involved.
  * @param integer $stepNumber Number of the step the link will be generated for.
  * @return array Route parameters plus instance and step parameter.
  */
 public function addDynamicStepNavigationParameters(array $parameters, FormFlow $flow, $stepNumber)
 {
     return $this->formFlowUtil->addRouteParameters($parameters, $flow, $stepNumber);
 }