Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
Scaffold: do not add submit buttons into generated test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnzlml committed Jul 31, 2016
1 parent c94ea10 commit 7b6b3ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scaffold/TestsGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function generateTests($outputFolder)
$controls = '';
/** @var \Nette\Application\UI\Form $form */
foreach ($form->getControls() as $control) {
if ($control->getName() === '_token_') {
if ($control->getName() === '_token_' || $control instanceof \Nette\Forms\Controls\SubmitButton) {
continue;
}
$controls .= "\t'" . $control->getName() . "' => '###', //FIXME: replace with value\n";
Expand Down

0 comments on commit 7b6b3ff

Please sign in to comment.