Loading core/modules/comment/tests/src/Functional/CommentStatusFieldAccessTest.php +2 −6 Original line number Diff line number Diff line Loading @@ -88,16 +88,12 @@ public function testCommentStatusFieldAccessStatus() { $this->drupalGet('node/add/article'); $assert = $this->assertSession(); $assert->fieldNotExists('comment[0][status]'); $this->submitForm([ 'title[0][value]' => 'Node 1', ], t('Save')); $this->submitForm(['title[0][value]' => 'Node 1'], 'Save'); $assert->fieldExists('subject[0][value]'); $this->drupalLogin($this->commentAdmin); $this->drupalGet('node/add/article'); $assert->fieldExists('comment[0][status]'); $this->submitForm([ 'title[0][value]' => 'Node 2', ], t('Save')); $this->submitForm(['title[0][value]' => 'Node 2'], 'Save'); $assert->fieldExists('subject[0][value]'); } Loading core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ public function testModerationForm() { $this->assertSession()->optionNotExists('moderation_state[0][state]', 'archived'); // Create new moderated content in draft. $this->submitForm(['moderation_state[0][state]' => 'draft'], t('Save')); $this->submitForm(['moderation_state[0][state]' => 'draft'], 'Save'); $node = $this->drupalGetNodeByTitle('Some moderated content'); $canonical_path = sprintf('node/%d', $node->id()); Loading core/modules/content_translation/tests/src/Functional/ContentTranslationDisableSettingTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ public function testDisableSetting() { $translatable_checkbox => TRUE, $language_alterable => TRUE, ]; $this->submitForm($edit, t('Save configuration')); $this->submitForm($edit, 'Save configuration'); $assert->pageTextContains(t('Settings successfully updated.')); Loading @@ -64,7 +64,7 @@ public function testDisableSetting() { $translatable_checkbox => TRUE, $language_alterable => TRUE, ]; $this->submitForm($edit, t('Save configuration')); $this->submitForm($edit, 'Save configuration'); $assert->pageTextContains(t('Settings successfully updated.')); Loading core/modules/inline_form_errors/tests/src/Functional/FormErrorHandlerFileUploadTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ public function testFileUploadErrors() { $edit = [ 'edit-title-0-value' => $this->randomString(), ]; $this->submitForm($edit, t('Save')); $this->submitForm($edit, 'Save'); $error_text = $this->getSession()->getPage()->find('css', '.field--name-field-ief-file .form-item--error-message')->getText(); Loading core/modules/migrate_drupal_ui/tests/src/Functional/d7/DoubleSlashTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -58,10 +58,10 @@ public function testMigrateUpgradeExecute() { // Start the upgrade process. $this->drupalGet('/upgrade'); $this->submitForm([], t('Continue')); $this->submitForm($edits, t('Review upgrade')); $this->submitForm([], t('I acknowledge I may lose data. Continue anyway.')); $this->submitForm([], t('Perform upgrade')); $this->submitForm([], 'Continue'); $this->submitForm($edits, 'Review upgrade'); $this->submitForm([], 'I acknowledge I may lose data. Continue anyway.'); $this->submitForm([], 'Perform upgrade'); // Tests the migration log contains an error message. $migration = $this->getMigrationPluginManager()->createInstance('d7_file'); Loading Loading
core/modules/comment/tests/src/Functional/CommentStatusFieldAccessTest.php +2 −6 Original line number Diff line number Diff line Loading @@ -88,16 +88,12 @@ public function testCommentStatusFieldAccessStatus() { $this->drupalGet('node/add/article'); $assert = $this->assertSession(); $assert->fieldNotExists('comment[0][status]'); $this->submitForm([ 'title[0][value]' => 'Node 1', ], t('Save')); $this->submitForm(['title[0][value]' => 'Node 1'], 'Save'); $assert->fieldExists('subject[0][value]'); $this->drupalLogin($this->commentAdmin); $this->drupalGet('node/add/article'); $assert->fieldExists('comment[0][status]'); $this->submitForm([ 'title[0][value]' => 'Node 2', ], t('Save')); $this->submitForm(['title[0][value]' => 'Node 2'], 'Save'); $assert->fieldExists('subject[0][value]'); } Loading
core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ public function testModerationForm() { $this->assertSession()->optionNotExists('moderation_state[0][state]', 'archived'); // Create new moderated content in draft. $this->submitForm(['moderation_state[0][state]' => 'draft'], t('Save')); $this->submitForm(['moderation_state[0][state]' => 'draft'], 'Save'); $node = $this->drupalGetNodeByTitle('Some moderated content'); $canonical_path = sprintf('node/%d', $node->id()); Loading
core/modules/content_translation/tests/src/Functional/ContentTranslationDisableSettingTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ public function testDisableSetting() { $translatable_checkbox => TRUE, $language_alterable => TRUE, ]; $this->submitForm($edit, t('Save configuration')); $this->submitForm($edit, 'Save configuration'); $assert->pageTextContains(t('Settings successfully updated.')); Loading @@ -64,7 +64,7 @@ public function testDisableSetting() { $translatable_checkbox => TRUE, $language_alterable => TRUE, ]; $this->submitForm($edit, t('Save configuration')); $this->submitForm($edit, 'Save configuration'); $assert->pageTextContains(t('Settings successfully updated.')); Loading
core/modules/inline_form_errors/tests/src/Functional/FormErrorHandlerFileUploadTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,7 @@ public function testFileUploadErrors() { $edit = [ 'edit-title-0-value' => $this->randomString(), ]; $this->submitForm($edit, t('Save')); $this->submitForm($edit, 'Save'); $error_text = $this->getSession()->getPage()->find('css', '.field--name-field-ief-file .form-item--error-message')->getText(); Loading
core/modules/migrate_drupal_ui/tests/src/Functional/d7/DoubleSlashTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -58,10 +58,10 @@ public function testMigrateUpgradeExecute() { // Start the upgrade process. $this->drupalGet('/upgrade'); $this->submitForm([], t('Continue')); $this->submitForm($edits, t('Review upgrade')); $this->submitForm([], t('I acknowledge I may lose data. Continue anyway.')); $this->submitForm([], t('Perform upgrade')); $this->submitForm([], 'Continue'); $this->submitForm($edits, 'Review upgrade'); $this->submitForm([], 'I acknowledge I may lose data. Continue anyway.'); $this->submitForm([], 'Perform upgrade'); // Tests the migration log contains an error message. $migration = $this->getMigrationPluginManager()->createInstance('d7_file'); Loading