/**
  * @param array $typoScript
  * @param string $globalThemeName
  * @param array $expected
  *
  * @test
  * @dataProvider propertiesAreUpdatedFromTypoScriptDataProvider
  */
 public function propertiesAreUpdatedFromTypoScript(array $typoScript, $globalThemeName, array $expected)
 {
     $this->typoScriptRepositoryProphecy->getModelConfigurationByScope('FORM', 'themeName')->willReturn($globalThemeName);
     $this->subject->setTypoScript($typoScript);
     $this->assertEquals($expected['prefix'], $this->subject->getPrefix());
     $this->assertEquals($expected['contentElementRendering'], $this->subject->getContentElementRendering());
 }
 /**
  * Remove a validation rule by key
  *
  * @param string $key
  * @return void
  */
 public function removeRule($key = '')
 {
     unset($this->rules[$this->configuration->getPrefix()][$key]);
 }
 /**
  * Skip the processing of foreign forms.
  * If there is more than one form on a page
  * we have to be sure that only the submitted form will be
  * processed. On data submission, the extbase action "confirmation" or
  * "process" is called. The detection which form is submitted
  * is done by the form prefix. All forms which do not have any
  * submitted data are skipped and forwarded to the show action.
  *
  * @return void
  */
 protected function skipForeignFormProcessing()
 {
     if (!$this->request->hasArgument($this->configuration->getPrefix()) && !$this->sessionUtility->getSessionData()) {
         $this->forward('show');
     }
 }