Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
8b46fee4
Commit
8b46fee4
authored
Feb 16, 2017
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2853296
by Wim Leers: Follow-up for
#2820743
: address remaining @todo
parent
78068b63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
.../src/Functional/EntityResource/EntityResourceTestBase.php
+1
-2
No files found.
core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php
View file @
8b46fee4
...
...
@@ -544,8 +544,7 @@ public function testPost() {
$parseable_valid_request_body
=
$this
->
serializer
->
encode
(
$this
->
getNormalizedPostEntity
(),
static
::
$format
);
$parseable_valid_request_body_2
=
$this
->
serializer
->
encode
(
$this
->
getNormalizedPostEntity
(),
static
::
$format
);
$parseable_invalid_request_body
=
$this
->
serializer
->
encode
(
$this
->
makeNormalizationInvalid
(
$this
->
getNormalizedPostEntity
()),
static
::
$format
);
// @todo Change to ['uuid' => UUID] in https://www.drupal.org/node/2820743.
$parseable_invalid_request_body_2
=
$this
->
serializer
->
encode
(
$this
->
getNormalizedPostEntity
()
+
[
'uuid'
=>
[[
'value'
=>
$this
->
randomMachineName
(
129
)]]],
static
::
$format
);
$parseable_invalid_request_body_2
=
$this
->
serializer
->
encode
(
$this
->
getNormalizedPostEntity
()
+
[
'uuid'
=>
[
$this
->
randomMachineName
(
129
)]],
static
::
$format
);
$parseable_invalid_request_body_3
=
$this
->
serializer
->
encode
(
$this
->
getNormalizedPostEntity
()
+
[
'field_rest_test'
=>
[[
'value'
=>
$this
->
randomString
()]]],
static
::
$format
);
// The URL and Guzzle request options that will be used in this test. The
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment