Пример #1
0
 /**
  * @test
  */
 public function processUsesLocalLayoutIfSet()
 {
     $processorConfig = array('layout.' => array('label' => '<div class="local"><labelvalue /></div>'), 'recipientEmail' => '*****@*****.**', 'senderEmail' => '*****@*****.**');
     $typoScript = array('layout.' => array('label' => '<div class="global"><labelvalue /></div>'), '1' => 'foo', '1.' => $processorConfig);
     $subject = new PostProcessor($this->formProphecy->reveal(), $typoScript);
     $this->typoScriptFactoryProphecy->setLayoutHandler($processorConfig)->willReturn($this->typoScriptLayoutProphecy->reveal());
     $this->assertEquals('', $subject->process());
 }
Пример #2
0
 /**
  * Add attachments when uploaded
  *
  * @return void
  */
 protected function addAttachmentsFromForm()
 {
     $formElements = $this->form->getElements();
     $values = $this->requestHandler->getByMethod();
     $this->addAttachmentsFromElements($formElements, $values);
 }