diff -u b/core/modules/file/lib/Drupal/file/Tests/FileFieldWidgetTest.php b/core/modules/file/lib/Drupal/file/Tests/FileFieldWidgetTest.php --- b/core/modules/file/lib/Drupal/file/Tests/FileFieldWidgetTest.php +++ b/core/modules/file/lib/Drupal/file/Tests/FileFieldWidgetTest.php @@ -189,7 +189,7 @@ $this->assertNoFieldByXPath('//input[@type="submit"]', t('Remove'), format_string('After removing all files, there is no "Remove" button displayed (JSMode=%type).', array('%type' => $type))); // Save the node and ensure it does not have any files. - $this->drupalPostForm(NULL, array('title' => $this->randomName()), t('Save and publish')); + $this->drupalPostForm(NULL, array('title[0][value]' => $this->randomName()), t('Save and publish')); $matches = array(); preg_match('/node\/([0-9]+)/', $this->getUrl(), $matches); $nid = $matches[1]; diff -u b/core/modules/filter/lib/Drupal/filter/Tests/FilterFormatAccessTest.php b/core/modules/filter/lib/Drupal/filter/Tests/FilterFormatAccessTest.php --- b/core/modules/filter/lib/Drupal/filter/Tests/FilterFormatAccessTest.php +++ b/core/modules/filter/lib/Drupal/filter/Tests/FilterFormatAccessTest.php @@ -266,9 +266,10 @@ // Verify that trying to save the node without selecting a new text format // produces an error message, and does not result in the node being saved. - $old_title = $new_edit['title']; + $old_title = $new_edit['title[0][value]']; $new_title = $this->randomName(8); - $edit = array('title' => $new_title); + $edit = array(); + $edit['title[0][value]'] = $new_title; $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save')); $this->assertText(t('!name field is required.', array('!name' => t('Text format'))), 'Error message is displayed.'); $this->drupalGet('node/' . $node->id()); @@ -302,7 +303,8 @@ $this->drupalLogin($this->filter_admin_user); $old_title = $new_title; $new_title = $this->randomName(8); - $edit = array('title' => $new_title); + $edit = array(); + $edit['title[0][value]'] = $new_title; $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save')); $this->assertText(t('!name field is required.', array('!name' => t('Text format'))), 'Error message is displayed.'); $this->drupalGet('node/' . $node->id()); diff -u b/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php b/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php --- b/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php +++ b/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php @@ -222,8 +222,11 @@ entity_delete_multiple('taxonomy_term', $tids); // Create an orphan forum item. + $edit = array(); + $edit['title[0][value]'] = $this->randomName(10); + $edit['body[0][value]'] = $this->randomName(120); $this->drupalLogin($this->admin_user); - $this->drupalPostForm('node/add/forum', array('title' => $this->randomName(10), 'body[0][value]' => $this->randomName(120)), t('Save')); + $this->drupalPostForm('node/add/forum', $edit, t('Save')); $nid_count = db_query('SELECT COUNT(nid) FROM {node}')->fetchField(); $this->assertEqual(0, $nid_count, 'A forum node was not created when missing a forum vocabulary.'); @@ -481,7 +484,7 @@ $body = $this->randomName(200); $edit = array( - 'title' => $title, + 'title[0][value]' => $title, 'body[0][value]' => $body, ); $tid = $forum['tid']; 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 @@ -46,7 +46,7 @@ // Create a node. $edit = array(); $edit['title[0][value]'] = $this->randomName(8); - $edit["body[0][value]"] = $this->randomName(16); + $edit['body[0][value]'] = $this->randomName(16); $this->drupalPostForm('node/add/page', $edit, t('Save')); // Check that the Basic page has been created. diff -u b/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php b/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php --- b/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php @@ -35,7 +35,7 @@ function testPageEdit() { $this->drupalLogin($this->web_user); - $title_key = 'title'; + $title_key = 'title[0][value]'; $body_key = 'body[0][value]'; // Create node to edit. $edit = array(); only in patch2: unchanged: --- a/core/modules/file/lib/Drupal/file/Tests/FileFieldValidateTest.php +++ b/core/modules/file/lib/Drupal/file/Tests/FileFieldValidateTest.php @@ -36,7 +36,8 @@ function testRequired() { $test_file = $this->getTestFile('text'); // Try to post a new node without uploading a file. - $edit = array("title" => $this->randomName()); + $edit = array(); + $edit['title[0][value]'] = $this->randomName(); $this->drupalPostForm('node/add/' . $type_name, $edit, t('Save and publish')); $this->assertRaw(t('!title field is required.', array('!title' => $instance->getFieldLabel())), 'Node save failed when required file field was empty.'); @@ -55,7 +56,8 @@ function testRequired() { $this->createFileField($field_name, 'node', $type_name, array('cardinality' => FIELD_CARDINALITY_UNLIMITED), array('required' => '1')); // Try to post a new node without uploading a file in the multivalue field. - $edit = array('title' => $this->randomName()); + $edit = array(); + $edit['title[0][value]'] = $this->randomName(); $this->drupalPostForm('node/add/' . $type_name, $edit, t('Save and publish')); $this->assertRaw(t('!title field is required.', array('!title' => $instance->getFieldLabel())), 'Node save failed when required multiple value file field was empty.'); only in patch2: unchanged: --- a/core/modules/filter/lib/Drupal/filter/Tests/FilterHooksTest.php +++ b/core/modules/filter/lib/Drupal/filter/Tests/FilterHooksTest.php @@ -65,11 +65,10 @@ function testFilterHooks() { // Use the format created. $title = $this->randomName(8); - $edit = array( - "title" => $title, - "body[0][value]" => $this->randomName(32), - "body[0][format]" => $format_id, - ); + $edit = array(); + $edit['title[0][value]'] = $title; + $edit['body[0][value]'] = $this->randomName(32); + $edit['body[0][format]'] = $format_id; $this->drupalPostForm("node/add/{$type->type}", $edit, t('Save and publish')); $this->assertText(t('@type @title has been created.', array('@type' => $type_name, '@title' => $title))); only in patch2: unchanged: --- a/core/modules/forum/lib/Drupal/forum/Tests/ForumBlockTest.php +++ b/core/modules/forum/lib/Drupal/forum/Tests/ForumBlockTest.php @@ -170,7 +170,7 @@ protected function createForumTopics($count = 5) { $date->modify('+1 minute'); $edit = array( - 'title' => $title, + 'title[0][value]' => $title, 'body[0][value]' => $body, // Forum posts are ordered by timestamp, so force a unique timestamp by // adding the index. only in patch2: unchanged: --- a/core/modules/forum/lib/Drupal/forum/Tests/ForumIndexTest.php +++ b/core/modules/forum/lib/Drupal/forum/Tests/ForumIndexTest.php @@ -47,7 +47,7 @@ function testForumIndexStatus() { // Create a test node. $title = $this->randomName(20); $edit = array( - 'title' => $title, + 'title[0][value]' => $title, 'body[0][value]' => $this->randomName(200), ); only in patch2: unchanged: --- a/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php +++ b/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php @@ -62,7 +62,7 @@ function testMenuNodeFormWidget() { // Create a node. $node_title = $this->randomName(); $edit = array( - 'title' => $node_title, + 'title[0][value]' => $node_title, 'body[0][value]' => $this->randomString(), ); $this->drupalPostForm('node/add/page', $edit, t('Save')); only in patch2: unchanged: --- a/core/modules/node/lib/Drupal/node/Tests/MultiStepNodeFormBasicOptionsTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/MultiStepNodeFormBasicOptionsTest.php @@ -61,7 +61,7 @@ function testMultiStepNodeFormBasicOptions() { ->save(); $edit = array( - 'title' => 'a', + 'title[0][value]' => 'a', 'promote' => FALSE, 'sticky' => 1, "{$this->field_name}[0][value]" => $this->randomString(32), only in patch2: unchanged: --- a/core/modules/node/lib/Drupal/node/Tests/NodeFormButtonsTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeFormButtonsTest.php @@ -47,7 +47,7 @@ function testNodeFormButtons() { // Save the node and assert it's published after clicking // 'Save and publish'. - $edit = array('title' => $this->randomString()); + $edit = array('title[0][value]' => $this->randomString()); $this->drupalPostForm('node/add/article', $edit, t('Save and publish')); // Get the node. @@ -83,7 +83,7 @@ function testNodeFormButtons() { $this->assertButtons(array(t('Save')), FALSE); // Create the node. - $edit = array('title' => $this->randomString()); + $edit = array('title[0][value]' => $this->randomString()); $this->drupalPostForm('node/add/article', $edit, t('Save')); $node_2 = node_load(2); $this->assertTrue($node_2->isPublished(), 'Node is published'); @@ -118,7 +118,7 @@ function testNodeFormButtons() { // Verify the node is unpublished by default for a normal user. $this->drupalLogout(); $this->drupalLogin($this->web_user); - $edit = array('title' => $this->randomString()); + $edit = array('title[0][value]' => $this->randomString()); $this->drupalPostForm('node/add/article', $edit, t('Save')); $node_3 = node_load(3); $this->assertFalse($node_3->isPublished(), 'Node is unpublished'); only in patch2: unchanged: --- a/core/modules/node/lib/Drupal/node/Tests/PagePreviewTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/PagePreviewTest.php @@ -110,7 +110,7 @@ function setUp() { * Checks the node preview functionality. */ function testPagePreview() { - $title_key = "title"; + $title_key = 'title[0][value]'; $body_key = 'body[0][value]'; $term_key = $this->field_name; @@ -181,7 +181,7 @@ function testPagePreview() { * Checks the node preview functionality, when using revisions. */ function testPagePreviewWithRevisions() { - $title_key = 'title'; + $title_key = 'title[0][value]'; $body_key = 'body[0][value]'; $term_key = $this->field_name; // Force revision on "Basic page" content. only in patch2: unchanged: --- a/core/modules/overlay/lib/Drupal/overlay/Tests/OverlayCloseTest.php +++ b/core/modules/overlay/lib/Drupal/overlay/Tests/OverlayCloseTest.php @@ -45,7 +45,7 @@ function testNodeCreation() { // Create a new node, with ?render=overlay in the query parameter to // simulate creating it inside the overlay. - $this->drupalPostForm('node/add/test', array('title' => 'Test node title'), t('Save'), array('query' => array('render' => 'overlay'))); + $this->drupalPostForm('node/add/test', array('title[0][value]' => 'Test node title'), t('Save'), array('query' => array('render' => 'overlay'))); // Make sure a bare minimum HTML page is displayed that contains the // JavaScript necessary to close the overlay. only in patch2: unchanged: --- a/core/modules/system/lib/Drupal/system/Tests/Upgrade/FieldUpgradePathTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Upgrade/FieldUpgradePathTest.php @@ -285,7 +285,7 @@ function testFieldUpgradeToConfig() { // Check that creation of a new node works as expected. $value = $this->randomName(); $edit = array( - 'title' => 'Node after CMI conversion', + 'title[0][value]' => 'Node after CMI conversion', 'body[0][value]' => $value, ); $this->drupalPostForm('node/add/article', $edit, 'Save and publish');