-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
Tests/Functional/Fixtures/FormFactories/TwoPageFormWithUploadFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
namespace Neos\Form\Tests\Functional\Fixtures\FormFactories; | ||
|
||
/* | ||
* This file is part of the Neos.Form package. | ||
* | ||
* (c) Contributors of the Neos Project - www.neos.io | ||
* | ||
* This package is Open Source Software. For the full copyright and license | ||
* information, please view the LICENSE file which was distributed with this | ||
* source code. | ||
*/ | ||
|
||
use Neos\Form\Core\Model\FormDefinition; | ||
use Neos\Form\Factory\AbstractFormFactory; | ||
|
||
class TwoPageFormWithUploadFactory extends AbstractFormFactory | ||
{ | ||
public function build(array $configuration, $presetName) | ||
{ | ||
$formDefinition = new FormDefinition('two-page-form-with-upload', $this->getPresetConfiguration($presetName)); | ||
|
||
$page1 = $formDefinition->createPage('page1'); | ||
$page2 = $formDefinition->createPage('page2'); | ||
|
||
$fileUpload = $page1->createElement('file', 'Neos.Form:FileUpload'); | ||
$fileUpload->setProperty('allowedExtensions', ['txt']); | ||
$page1->createElement('date', 'Neos.Form:DatePicker'); | ||
$page2->createElement('text2-1', 'Neos.Form:SingleLineText'); | ||
|
||
return $formDefinition; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is just a dummy file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters