Skip to content

Conversation

TavoNiievez
Copy link
Member

It is also present in the Laravel Module,

Check for errors after submitting a form.

@TavoNiievez TavoNiievez added this to the 1.4.0 milestone Nov 21, 2020
@Naktibalda
Copy link
Member

I can't find any documentation of form collector. Is it documented at all?

@TavoNiievez
Copy link
Member Author

TavoNiievez commented Nov 22, 2020

It has no page on symfony.com and it is referenced very little (even on stackoverflow), that made it difficult to write these functions...

 // Symfony\Component\Form\Extension\DataCollector\FormDataCollectorInterface.php

 /**
 * Returns all collected data.
 *
 * @return array|Data
 */
 public function getData();

But i debugged the 'Data' object deeply until i found the info i needed. there are no other objects in it, only arrays.

@TavoNiievez
Copy link
Member Author

TavoNiievez commented Nov 22, 2020

I verified that those keys were the correct ones, doing a bit of reverse engineering here.

Edit: See also [1] [2] .

@TavoNiievez TavoNiievez merged commit 354f62a into Codeception:master Nov 23, 2020
@TavoNiievez TavoNiievez deleted the seeFormHasErrors branch November 23, 2020 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants