Skip to content

Commit

Permalink
Replace gender by eye color in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaëll Roussel committed Jan 26, 2019
1 parent c4fc0f1 commit 355be2d
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Tests/Fixtures/Serialization/Author.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

class Author
{
public $gender;
public $eyeColor;
}
2 changes: 1 addition & 1 deletion Tests/Fixtures/Serialization/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

class Person
{
public $gender;
public $eyeColor;
}
2 changes: 1 addition & 1 deletion Tests/Fixtures/Serialization/Resources/author.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Serialization\Author:
attributes:
gender:
eyeColor:
groups: ['group1', 'group2']
2 changes: 1 addition & 1 deletion Tests/Fixtures/Serialization/Resources/person.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
>
<class name="Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Serialization\Person">
<attribute name="gender">
<attribute name="eyeColor">
<group>group1</group>
<group>group2</group>
</attribute>
Expand Down
2 changes: 1 addition & 1 deletion Tests/Fixtures/Validation/Author.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

class Author
{
public $gender;
public $eyeColor;
}
2 changes: 1 addition & 1 deletion Tests/Fixtures/Validation/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

class Person
{
public $gender;
public $eyeColor;
}
4 changes: 2 additions & 2 deletions Tests/Fixtures/Validation/Resources/author.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Validation\Author:
properties:
gender:
- Choice: { choices: [male, female, other], message: Choose a valid gender. }
eyeColor:
- Choice: { choices: [brown, green, blue], message: Choose a valid eye color. }
10 changes: 5 additions & 5 deletions Tests/Fixtures/Validation/Resources/person.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd">

<class name="Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Validation\Person">
<property name="gender">
<property name="eyeColor">
<constraint name="Choice">
<option name="choices">
<value>male</value>
<value>female</value>
<value>other</value>
<value>brown</value>
<value>green</value>
<value>blue</value>
</option>
<option name="message">Choose a valid gender.</option>
<option name="message">Choose a valid eye color.</option>
</constraint>
</property>
</class>
Expand Down

0 comments on commit 355be2d

Please sign in to comment.