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
77152e7a
Commit
77152e7a
authored
Apr 18, 2015
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2472865
by chx: PageEditTest presumes STRINGIFY_FETCHES
parent
3f3ebc75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
core/modules/node/src/Tests/PageEditTest.php
core/modules/node/src/Tests/PageEditTest.php
+5
-1
No files found.
core/modules/node/src/Tests/PageEditTest.php
View file @
77152e7a
...
...
@@ -117,7 +117,11 @@ function testPageAuthoredBy() {
$this
->
drupalPostForm
(
'node/'
.
$node
->
id
()
.
'/edit'
,
$edit
,
t
(
'Save and keep published'
));
$node_storage
->
resetCache
(
array
(
$node
->
id
()));
$node
=
$node_storage
->
load
(
$node
->
id
());
$this
->
assertIdentical
(
$node
->
getOwnerId
(),
'0'
,
'Node authored by anonymous user.'
);
$uid
=
$node
->
getOwnerId
();
// Most SQL database drivers stringify fetches but entities are not
// necessarily stored in a SQL database. At the same time, NULL/FALSE/""
// won't do.
$this
->
assertTrue
(
$uid
===
0
||
$uid
===
'0'
,
'Node authored by anonymous user.'
);
// Change the authored by field to another user's name (that is not
// logged in).
...
...
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