Skip to content

Commit

Permalink
Show debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
jsor committed Apr 23, 2015
1 parent 048face commit d37d2d5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
7 changes: 0 additions & 7 deletions tests/Exception/FormErrorExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ public function it_serializes_exception_to_json()
[
'name' => [
'first_name' => 'Jan',
],
'emails' => [
'foo'
]
]
],
Expand Down Expand Up @@ -76,10 +73,6 @@ public function it_serializes_exception_to_json()
'message' => 'This value should not be blank.',
'path' => '/family/0/name/last_name',
],
[
'message' => 'This value is not a valid email address.',
'path' => '/family/0/emails/0',
],
[
'message' => 'This value should not be blank.',
'path' => '/newsletter',
Expand Down
4 changes: 1 addition & 3 deletions tests/Fixtures/Form/FormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ class FormType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('person', new PersonType(), [
'mapped' => false
])
->add('person', new PersonType())
->add('family', 'collection', [
'type' => new PersonType(),
'allow_add' => true
Expand Down
10 changes: 0 additions & 10 deletions tests/Fixtures/Form/PersonType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints\Email;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Constraints\Valid;

Expand All @@ -25,15 +24,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'constraints' => [
new Valid()
]
])
->add('emails', 'collection', [
'type' => 'email',
'allow_add' => true,
'options' => [
'constraints' => [
new Email()
],
],
]);
}

Expand Down

0 comments on commit d37d2d5

Please sign in to comment.