diff -u b/core/modules/node/lib/Drupal/node/Tests/NodeCreationTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeCreationTest.php --- b/core/modules/node/lib/Drupal/node/Tests/NodeCreationTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeCreationTest.php @@ -63,11 +63,11 @@ function testFailedPageCreation() { // Create a node. $edit = array( - 'uid' => $this->loggedInUser->id(), - 'name' => $this->loggedInUser->name, - 'type' => 'page', - 'langcode' => Language::LANGCODE_NOT_SPECIFIED, - 'title[0][value]' => 'testing_transaction_exception', + 'uid' => $this->loggedInUser->id(), + 'name' => $this->loggedInUser->name, + 'type' => 'page', + 'langcode' => Language::LANGCODE_NOT_SPECIFIED, + 'title' => 'testing_transaction_exception', ); try { @@ -80,12 +80,12 @@ if (Database::getConnection()->supportsTransactions()) { // Check that the node does not exist in the database. - $node = $this->drupalGetNodeByTitle($edit['title[0][value]']); + $node = $this->drupalGetNodeByTitle($edit['title']); $this->assertFalse($node, 'Transactions supported, and node not found in database.'); } else { // Check that the node exists in the database. - $node = $this->drupalGetNodeByTitle($edit['title[0][value]']); + $node = $this->drupalGetNodeByTitle($edit['title']); $this->assertTrue($node, 'Transactions not supported, and node found in database.'); // Check that the failed rollback was logged. reverted: --- b/core/modules/node/lib/Drupal/node/Tests/NodeSaveTest.php +++ a/core/modules/node/lib/Drupal/node/Tests/NodeSaveTest.php @@ -79,11 +79,11 @@ $edit = array( 'uid' => $this->web_user->id(), 'type' => 'article', + 'title' => $this->randomName(8), - 'title[0][value]' => $this->randomName(8), ); entity_create('node', $edit)->save(); + $node = $this->drupalGetNodeByTitle($edit['title']); - $node = $this->drupalGetNodeByTitle($edit['title[0][value]']); $this->assertEqual($node->getCreatedTime(), REQUEST_TIME, 'Creating a node sets default "created" timestamp.'); $this->assertEqual($node->getChangedTime(), REQUEST_TIME, 'Creating a node sets default "changed" timestamp.'); @@ -92,7 +92,7 @@ $changed = $node->getChangedTime(); $node->save(); + $node = $this->drupalGetNodeByTitle($edit['title'], TRUE); - $node = $this->drupalGetNodeByTitle($edit['title[0][value]'], TRUE); $this->assertEqual($node->getCreatedTime(), $created, 'Updating a node preserves "created" timestamp.'); // Programmatically set the timestamps using hook_node_presave. @@ -113,7 +113,7 @@ ); entity_create('node', $edit)->save(); + $node = $this->drupalGetNodeByTitle($edit['title']); - $node = $this->drupalGetNodeByTitle($edit['title[0][value]']); $this->assertEqual($node->getCreatedTime(), 280299600, 'Creating a node uses user-set "created" timestamp.'); $this->assertNotEqual($node->getChangedTime(), 979534800, 'Creating a node does not use user-set "changed" timestamp.'); @@ -122,7 +122,7 @@ $node->changed = 280299600; $node->save(); + $node = $this->drupalGetNodeByTitle($edit['title'], TRUE); - $node = $this->drupalGetNodeByTitle($edit['title[0][value]'], TRUE); $this->assertEqual($node->getCreatedTime(), 979534800, 'Updating a node uses user-set "created" timestamp.'); $this->assertNotEqual($node->getChangedTime(), 280299600, 'Updating a node does not use user-set "changed" timestamp.'); } only in patch2: unchanged: --- a/core/modules/forum/lib/Drupal/forum/Tests/ForumNodeAccessTest.php +++ b/core/modules/forum/lib/Drupal/forum/Tests/ForumNodeAccessTest.php @@ -52,7 +52,7 @@ function testForumNodeAccess() { // Create a private node. $private_node_title = $this->randomName(20); $edit = array( - 'title' => $private_node_title, + 'title[0][value]' => $private_node_title, 'body[0][value]' => $this->randomName(200), 'private' => TRUE, ); @@ -63,7 +63,7 @@ function testForumNodeAccess() { // Create a public node. $public_node_title = $this->randomName(20); $edit = array( - 'title' => $public_node_title, + 'title[0][value]' => $public_node_title, 'body[0][value]' => $this->randomName(200), ); $this->drupalPostForm('node/add/forum', $edit, t('Save'), array('query' => array('forum_id' => 1))); only in patch2: unchanged: --- a/core/modules/node/lib/Drupal/node/Tests/NodeFieldMultilingualTestCase.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeFieldMultilingualTestCase.php @@ -70,7 +70,7 @@ function setUp() { function testMultilingualNodeForm() { // Create "Basic page" content. $langcode = language_get_default_langcode('node', 'page'); - $title_key = "title"; + $title_key = 'title[0][value]'; $title_value = $this->randomName(8); $body_key = 'body[0][value]'; $body_value = $this->randomName(16); @@ -114,7 +114,7 @@ function testMultilingualNodeForm() { */ function testMultilingualDisplaySettings() { // Create "Basic page" content. - $title_key = "title"; + $title_key = 'title[0][value]'; $title_value = $this->randomName(8); $body_key = 'body[0][value]'; $body_value = $this->randomName(16);