/**
  * @covers ::buildConfigurationForm
  */
 public function testBuildConfigurationFormWithFilter()
 {
     $form = [];
     $form_state = $this->getMock(FormStateInterface::class);
     $this->moduleHandler->expects($this->once())->method('moduleExists')->with('filter')->willReturn(TRUE);
     $message_text = $this->randomMachineName();
     $message_format = $this->randomMachineName();
     $this->sut->setMessageText($message_text);
     $this->sut->setMessageTextFormat($message_format);
     $build = $this->sut->buildConfigurationForm($form, $form_state);
     $expected_build = array('message' => array('#tree' => TRUE, '#type' => 'text_format', '#title' => 'Payment form message', '#default_value' => $message_text, '#format' => $message_format));
     $this->assertEquals($expected_build, $build);
 }
 /**
  * {@inheritdoc}
  */
 public function buildConfigurationForm(array $form, FormStateInterface $form_state)
 {
     $form = parent::buildConfigurationForm($form, $form_state);
     $form['plugin_form'] = array('#process' => array(array($this, 'processBuildConfigurationForm')), '#type' => 'container');
     return $form;
 }