/**
  * Creates a new instance.
  *
  * @param mixed[] $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Symfony\Component\HttpFoundation\RequestStack $request_stack
  * @param \Drupal\Core\Entity\EntityStorageInterface $payment_storage
  * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
  * @param \Drupal\Core\Datetime\DateFormatter $date_formatter
  * @param \Drupal\Core\Utility\LinkGeneratorInterface $link_generator
  * @param \Drupal\Core\Render\RendererInterface $renderer
  * @param \Drupal\Core\Session\AccountInterface $current_user
  * @param \Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorManagerInterface $plugin_selector_manager
  * @param \Drupal\plugin\PluginType\PluginTypeInterface $payment_method_type
  * @param \Drupal\payment\QueueInterface $payment_queue
  */
 public function __construct($configuration, $plugin_id, $plugin_definition, RequestStack $request_stack, EntityStorageInterface $payment_storage, TranslationInterface $string_translation, DateFormatter $date_formatter, LinkGeneratorInterface $link_generator, RendererInterface $renderer, AccountInterface $current_user, PluginSelectorManagerInterface $plugin_selector_manager, PluginTypeInterface $payment_method_type, Random $random, QueueInterface $payment_queue)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition, $request_stack, $payment_storage, $string_translation, $date_formatter, $link_generator, $renderer, $current_user, $plugin_selector_manager, $payment_method_type, $random);
     $this->paymentQueue = $payment_queue;
 }
 /**
  * @covers ::process
  *
  * @expectedException \InvalidArgumentException
  *
  * @dataProvider providerTestProcess
  */
 public function testProcessWithInvalidElementConfiguration(array $element)
 {
     $form_state = $this->getMock(FormStateInterface::class);
     $form = [];
     $this->sut->process($element, $form_state, $form);
 }