Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
77152e7a
Commit
77152e7a
authored
9 years ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2472865
by chx: PageEditTest presumes STRINGIFY_FETCHES
parent
3f3ebc75
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/node/src/Tests/PageEditTest.php
+5
-1
5 additions, 1 deletion
core/modules/node/src/Tests/PageEditTest.php
with
5 additions
and
1 deletion
core/modules/node/src/Tests/PageEditTest.php
+
5
−
1
View file @
77152e7a
...
@@ -117,7 +117,11 @@ function testPageAuthoredBy() {
...
@@ -117,7 +117,11 @@ function testPageAuthoredBy() {
$this
->
drupalPostForm
(
'node/'
.
$node
->
id
()
.
'/edit'
,
$edit
,
t
(
'Save and keep published'
));
$this
->
drupalPostForm
(
'node/'
.
$node
->
id
()
.
'/edit'
,
$edit
,
t
(
'Save and keep published'
));
$node_storage
->
resetCache
(
array
(
$node
->
id
()));
$node_storage
->
resetCache
(
array
(
$node
->
id
()));
$node
=
$node_storage
->
load
(
$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
// Change the authored by field to another user's name (that is not
// logged in).
// logged in).
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment