Skip to content
Snippets Groups Projects
Commit 77152e7a authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2472865 by chx: PageEditTest presumes STRINGIFY_FETCHES

parent 3f3ebc75
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -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).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment