X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fnode%2Ftests%2Fsrc%2FFunctional%2FViews%2FBulkFormTest.php;fp=web%2Fcore%2Fmodules%2Fnode%2Ftests%2Fsrc%2FFunctional%2FViews%2FBulkFormTest.php;h=319890b6fb8f3d77f82153a211f076d49a4146e9;hp=458933e04e1ae4ab0dd5107ff9e9e38fe57f23a1;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/node/tests/src/Functional/Views/BulkFormTest.php b/web/core/modules/node/tests/src/Functional/Views/BulkFormTest.php index 458933e04..319890b6f 100644 --- a/web/core/modules/node/tests/src/Functional/Views/BulkFormTest.php +++ b/web/core/modules/node/tests/src/Functional/Views/BulkFormTest.php @@ -170,19 +170,29 @@ class BulkFormTest extends NodeTestBase { // operations are always applied to individual translations. $edit = [ // Original and all translations. - 'node_bulk_form[0]' => TRUE, // Node 1, English, original. - 'node_bulk_form[1]' => TRUE, // Node 1, British English. - 'node_bulk_form[2]' => TRUE, // Node 1, Italian. + // Node 1, English, original. + 'node_bulk_form[0]' => TRUE, + // Node 1, British English. + 'node_bulk_form[1]' => TRUE, + // Node 1, Italian. + 'node_bulk_form[2]' => TRUE, // Original and only one translation. - 'node_bulk_form[3]' => TRUE, // Node 2, English. - 'node_bulk_form[4]' => TRUE, // Node 2, British English, original. - 'node_bulk_form[5]' => FALSE, // Node 2, Italian. + // Node 2, English. + 'node_bulk_form[3]' => TRUE, + // Node 2, British English, original. + 'node_bulk_form[4]' => TRUE, + // Node 2, Italian. + 'node_bulk_form[5]' => FALSE, // Only a single translation. - 'node_bulk_form[6]' => TRUE, // Node 3, English. - 'node_bulk_form[7]' => FALSE, // Node 3, Italian, original. + // Node 3, English. + 'node_bulk_form[6]' => TRUE, + // Node 3, Italian, original. + 'node_bulk_form[7]' => FALSE, // Only a single untranslated node. - 'node_bulk_form[8]' => TRUE, // Node 4, English, untranslated. - 'node_bulk_form[9]' => FALSE, // Node 5, British English, untranslated. + // Node 4, English, untranslated. + 'node_bulk_form[8]' => TRUE, + // Node 5, British English, untranslated. + 'node_bulk_form[9]' => FALSE, 'action' => 'node_unpublish_action', ]; $this->drupalPostForm(NULL, $edit, t('Apply to selected items')); @@ -211,19 +221,29 @@ class BulkFormTest extends NodeTestBase { // nodes and individual translations are properly deleted. $edit = [ // Original and all translations. - 'node_bulk_form[0]' => TRUE, // Node 1, English, original. - 'node_bulk_form[1]' => TRUE, // Node 1, British English. - 'node_bulk_form[2]' => TRUE, // Node 1, Italian. + // Node 1, English, original. + 'node_bulk_form[0]' => TRUE, + // Node 1, British English. + 'node_bulk_form[1]' => TRUE, + // Node 1, Italian. + 'node_bulk_form[2]' => TRUE, // Original and only one translation. - 'node_bulk_form[3]' => TRUE, // Node 2, English. - 'node_bulk_form[4]' => TRUE, // Node 2, British English, original. - 'node_bulk_form[5]' => FALSE, // Node 2, Italian. + // Node 2, English. + 'node_bulk_form[3]' => TRUE, + // Node 2, British English, original. + 'node_bulk_form[4]' => TRUE, + // Node 2, Italian. + 'node_bulk_form[5]' => FALSE, // Only a single translation. - 'node_bulk_form[6]' => TRUE, // Node 3, English. - 'node_bulk_form[7]' => FALSE, // Node 3, Italian, original. + // Node 3, English. + 'node_bulk_form[6]' => TRUE, + // Node 3, Italian, original. + 'node_bulk_form[7]' => FALSE, // Only a single untranslated node. - 'node_bulk_form[8]' => TRUE, // Node 4, English, untranslated. - 'node_bulk_form[9]' => FALSE, // Node 5, British English, untranslated. + // Node 4, English, untranslated. + 'node_bulk_form[8]' => TRUE, + // Node 5, British English, untranslated. + 'node_bulk_form[9]' => FALSE, 'action' => 'node_delete_action', ]; $this->drupalPostForm(NULL, $edit, t('Apply to selected items'));