Update form::getFields to return also nested fields

[MAILPOET-2609]
This commit is contained in:
Rostislav Wolny
2020-02-19 15:44:36 +01:00
committed by Pavel Dohnal
parent 0c64c38e61
commit 7bf1b69a94
2 changed files with 28 additions and 3 deletions

View File

@ -105,13 +105,27 @@ class FormTest extends \MailPoetTest {
'type' => 'text',
'id' => 2,
],
[
'type' => 'columns',
'body' => [
[
'type' => 'column',
'body' => [
[
'type' => 'text',
'id' => 3,
],
],
],
],
],
[
'type' => 'submit',
'id' => 'submit',
],
],
]);
expect($form->getFieldList())->equals(['email', 'cf_2']);
expect($form->getFieldList())->equals(['email', 'cf_2', 'cf_3']);
}
public function testItUpdatesSuccessMessagesWhenConfirmationIsDisabled() {