-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
181 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
App\Entity\Attendee: | ||
attendee_1: | ||
__construct: [ '02d47053-4034-4818-97d1-299c4cd7168d', 'Ferdinand', 'Hale', '[email protected]' ] | ||
__construct: [ '02d47053-4034-4818-97d1-299c4cd7168d', 'Ferdinand', 'Hale', 'Ferdinand Hale', '[email protected]' ] | ||
attendee_2: | ||
__construct: [ '6047c255-593f-4fa8-888b-f919fafd904f', 'Abraham', 'Noel', '[email protected]' ] | ||
__construct: [ '6047c255-593f-4fa8-888b-f919fafd904f', 'Abraham', 'Noel', 'Abraham Noel', '[email protected]' ] | ||
attendee_3: | ||
__construct: [ '92e06a4b-19ac-4e67-b988-00e7250929c6', 'Bertha', 'Tucker', '[email protected]' ] | ||
__construct: [ '92e06a4b-19ac-4e67-b988-00e7250929c6', 'Bertha', 'Tucker', 'Bertha Tucker', '[email protected]' ] | ||
attendee_4: | ||
__construct: [ 'c153c6c3-c43b-449d-8f5a-2bfb627f9822', 'Melodie', 'Perkins', '[email protected]' ] | ||
__construct: [ 'c153c6c3-c43b-449d-8f5a-2bfb627f9822', 'Melodie', 'Perkins', 'Melodie Perkins', '[email protected]' ] | ||
attendee_5: | ||
__construct: [ 'f5e2c329-f5b8-4e4b-860d-b5a0189ef35f', 'Keegan', 'Mcpherson', '[email protected]' ] | ||
__construct: [ 'f5e2c329-f5b8-4e4b-860d-b5a0189ef35f', 'Keegan', 'Mcpherson', 'Keegan Mcpherson', '[email protected]' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
<!-- DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4" --> | ||
<env name="DATABASE_URL" value="sqlite:///%kernel.project_dir%/var/data.db"/> | ||
<!-- ###- doctrine/doctrine-bundle ### --> | ||
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="Project Test Suite"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ public function test_it_should_create_an_attendee(): void | |
$expectedAttendee = $attendeesAfter[0]; | ||
static::assertSame('Paul', $expectedAttendee->getFirstname()); | ||
static::assertSame('Paulsen', $expectedAttendee->getLastname()); | ||
static::assertSame('Paul Paulsen', $expectedAttendee->getName()); | ||
static::assertSame('[email protected]', $expectedAttendee->getEmail()); | ||
} | ||
|
||
|
@@ -57,9 +58,9 @@ public static function provideUnprocessableAttendeeData(): \Generator | |
yield 'empty data' => ['{}']; | ||
yield 'wrong json one' => ['{']; | ||
yield 'wrong json two' => ['}']; | ||
yield 'missing firstname' => ['{"lastname": "Paulsen", "email": "[email protected]"}']; | ||
yield 'missing lastname' => ['{"firstname": "Paul", "email": "[email protected]"}']; | ||
yield 'missing email' => ['{"firstname": "Paul", "lastname": "Paulsen"}']; | ||
yield 'wrong email' => ['{"firstname": "Paul", "lastname": "Paulsen", "email": "paulpaulsende"}']; | ||
yield 'missing firstname and missing name' => ['{"lastname": "Paulsen", "email": "[email protected]"}']; | ||
yield 'missing lastname and missing name' => ['{"firstname": "Paul", "email": "[email protected]"}']; | ||
yield 'missing email' => ['{"name": "Paul Paulsen"}']; | ||
yield 'wrong email' => ['{"name": "Paul Paulsen", "email": "paulpaulsende"}']; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...UnprocessableEntityHttpException with data set missing firstname and missing name__1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"errors": [ | ||
{ | ||
"message": "Validation failed.", | ||
"detail": "firstname: Passing values for fields \"$firstname\" and \"$lastname\" is deprecated. Pass a value for field \"$name\" instead." | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
..._UnprocessableEntityHttpException with data set missing lastname and missing name__1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"errors": [ | ||
{ | ||
"message": "Validation failed.", | ||
"detail": "firstname: Passing values for fields \"$firstname\" and \"$lastname\" is deprecated. Pass a value for field \"$name\" instead." | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"identifier": "803449f4-9a4c-4ecb-8ce4-cebc804fe70a", | ||
"firstname": "Jan", | ||
"lastname": "Sch\u00e4dlich", | ||
"name": "Jan Sch\u00e4dlich", | ||
"email": "[email protected]", | ||
"workshops": [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"identifier": "803449f4-9a4c-4ecb-8ce4-cebc804fe70a", | ||
"firstname": "Jan", | ||
"lastname": "Sch\u00e4dlich", | ||
"name": "Jan Sch\u00e4dlich", | ||
"email": "[email protected]", | ||
"workshops": [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,20 +4,23 @@ | |
"identifier": "4878f198-36ab-4fe3-8189-19662a9764fa", | ||
"firstname": "a", | ||
"lastname": "1", | ||
"name": "a1", | ||
"email": "[email protected]", | ||
"workshops": [] | ||
}, | ||
{ | ||
"identifier": "e942ce16-27c2-494f-9d93-03412da980c5", | ||
"firstname": "b", | ||
"lastname": "2", | ||
"name": "b2", | ||
"email": "[email protected]", | ||
"workshops": [] | ||
}, | ||
{ | ||
"identifier": "4714fb8a-83d8-49af-abbf-7c68fc6c9656", | ||
"firstname": "c", | ||
"lastname": "3", | ||
"name": "c3", | ||
"email": "[email protected]", | ||
"workshops": [] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,34 +4,39 @@ | |
"identifier": "4878f198-36ab-4fe3-8189-19662a9764fa", | ||
"firstname": "a", | ||
"lastname": "1", | ||
"name": "a1", | ||
"email": "[email protected]", | ||
"workshops": [] | ||
}, | ||
{ | ||
"identifier": "e942ce16-27c2-494f-9d93-03412da980c5", | ||
"firstname": "b", | ||
"lastname": "2", | ||
"name": "b2", | ||
"email": "[email protected]", | ||
"workshops": [] | ||
}, | ||
{ | ||
"identifier": "4714fb8a-83d8-49af-abbf-7c68fc6c9656", | ||
"firstname": "c", | ||
"lastname": "3", | ||
"name": "c3", | ||
"email": "[email protected]", | ||
"workshops": [] | ||
}, | ||
{ | ||
"identifier": "65445e8c-a6c6-4955-9eb2-5fb60d6a991e", | ||
"firstname": "d", | ||
"lastname": "4", | ||
"name": "d4", | ||
"email": "[email protected]", | ||
"workshops": [] | ||
}, | ||
{ | ||
"identifier": "3aacd688-5b81-4aba-a5ea-ac7668ba95b6", | ||
"firstname": "e", | ||
"lastname": "5", | ||
"name": "e5", | ||
"email": "[email protected]", | ||
"workshops": [] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,15 @@ | |
"identifier": "65445e8c-a6c6-4955-9eb2-5fb60d6a991e", | ||
"firstname": "d", | ||
"lastname": "4", | ||
"name": "d4", | ||
"email": "[email protected]", | ||
"workshops": [] | ||
}, | ||
{ | ||
"identifier": "3aacd688-5b81-4aba-a5ea-ac7668ba95b6", | ||
"firstname": "e", | ||
"lastname": "5", | ||
"name": "e5", | ||
"email": "[email protected]", | ||
"workshops": [] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
"identifier": "17058af8-1b0f-4afe-910d-669b4bd0fd26", | ||
"firstname": "Jan", | ||
"lastname": "Sch\u00e4dlich", | ||
"name": "Jan Sch\u00e4dlich", | ||
"email": "[email protected]", | ||
"workshops": [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
"identifier": "17058af8-1b0f-4afe-910d-669b4bd0fd26", | ||
"firstname": "Jan", | ||
"lastname": "Sch\u00e4dlich", | ||
"name": "Jan Sch\u00e4dlich", | ||
"email": "[email protected]", | ||
"workshops": [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
App\Entity\Attendee: | ||
attendee_1: | ||
__construct: [ 'bb5cb8a8-0df8-404f-a3f3-54ee5c9cf855', 'Jan', 'Schädlich', '[email protected]' ] | ||
__construct: [ 'bb5cb8a8-0df8-404f-a3f3-54ee5c9cf855', 'Jan', 'Schädlich', 'Jan Schädlich', '[email protected]' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ App\Entity\Workshop: | |
|
||
App\Entity\Attendee: | ||
attendee_1: | ||
__construct: [ '803449f4-9a4c-4ecb-8ce4-cebc804fe70a', 'Jan', 'Schädlich', '[email protected]' ] | ||
__construct: [ '803449f4-9a4c-4ecb-8ce4-cebc804fe70a', 'Jan', 'Schädlich', 'Jan Schädlich', '[email protected]' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
App\Entity\Attendee: | ||
attendee_1: | ||
__construct: [ '4878f198-36ab-4fe3-8189-19662a9764fa', 'a', '1', '[email protected]' ] | ||
__construct: [ '4878f198-36ab-4fe3-8189-19662a9764fa', 'a', '1', 'a1', 'a1@test.de' ] | ||
attendee_2: | ||
__construct: [ 'e942ce16-27c2-494f-9d93-03412da980c5', 'b', '2', '[email protected]' ] | ||
__construct: [ 'e942ce16-27c2-494f-9d93-03412da980c5', 'b', '2', 'b2', 'b2@test.de' ] | ||
attendee_3: | ||
__construct: [ '4714fb8a-83d8-49af-abbf-7c68fc6c9656', 'c', '3', '[email protected]' ] | ||
__construct: [ '4714fb8a-83d8-49af-abbf-7c68fc6c9656', 'c', '3', 'c3', 'c3@test.de' ] | ||
attendee_4: | ||
__construct: [ '65445e8c-a6c6-4955-9eb2-5fb60d6a991e', 'd', '4', '[email protected]' ] | ||
__construct: [ '65445e8c-a6c6-4955-9eb2-5fb60d6a991e', 'd', '4', 'd4', 'd4@test.de' ] | ||
attendee_5: | ||
__construct: [ '3aacd688-5b81-4aba-a5ea-ac7668ba95b6', 'e', '5', '[email protected]' ] | ||
__construct: [ '3aacd688-5b81-4aba-a5ea-ac7668ba95b6', 'e', '5', 'e5', 'e5@test.de' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ App\Entity\Workshop: | |
|
||
App\Entity\Attendee: | ||
attendee_1: | ||
__construct: [ '17058af8-1b0f-4afe-910d-669b4bd0fd26', 'Jan', 'Schädlich', '[email protected]' ] | ||
__construct: [ '17058af8-1b0f-4afe-910d-669b4bd0fd26', 'Jan', 'Schädlich', 'Jan Schädlich', '[email protected]' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
App\Entity\Attendee: | ||
attendee_1: | ||
__construct: [ 'b38aa3e4-f9de-4dca-aaeb-3ec36a9feb6c', 'Jan', 'Schädlich', '[email protected]' ] | ||
__construct: [ 'b38aa3e4-f9de-4dca-aaeb-3ec36a9feb6c', 'Jan', 'Schädlich', 'Jan Schädlich', '[email protected]' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
"identifier": "2a451d60-2fef-437b-838e-10edb2ade8eb", | ||
"firstname": "Jan", | ||
"lastname": "Sch\u00e4dlich", | ||
"name": "Jan Sch\u00e4dlich", | ||
"email": "[email protected]", | ||
"workshops": [ | ||
"RESTful Webservices in Symfony" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
"identifier": "2a451d60-2fef-437b-838e-10edb2ade8eb", | ||
"firstname": "Jan", | ||
"lastname": "Sch\u00e4dlich", | ||
"name": "Jan Sch\u00e4dlich", | ||
"email": "[email protected]", | ||
"workshops": [ | ||
"RESTful Webservices in Symfony" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
"identifier": "36ffcf19-7560-4ead-8d8e-3c40cf169784", | ||
"firstname": "Jan", | ||
"lastname": "Sch\u00e4dlich", | ||
"name": "Jan Sch\u00e4dlich", | ||
"email": "[email protected]", | ||
"workshops": [ | ||
"RESTful Webservices in Symfony" | ||
|
Oops, something went wrong.