Issue #3186661: [May 24, 2021] Remove usage of drupalPostForm
Merge request reports
Activity
Filter activity
added 1 commit
- c244f604 - Some drupalPostForm replacements previously missed by scripts and regexes
added 9 commits
-
c244f604...01d96560 - 8 commits from branch
project:9.2.x
- b96fc5d0 - Merge branch '9.2.x' into 3186661-may-24-2021
-
c244f604...01d96560 - 8 commits from branch
120 120 "The \"Drupal\Tests\Listeners\DrupalListener\" class uses \"PHPUnit\Framework\TestListenerDefaultImplementation\" that is deprecated The `TestListener` interface is deprecated.", 121 121 "The \"PHPUnit\Framework\TestSuite\" class is considered internal This class is not covered by the backward compatibility promise for PHPUnit. It may change without further notice. You should not use it from \"Drupal\Tests\TestSuites\TestSuiteBase\".", 122 122 // Simpletest's legacy assertion methods. 123 'AssertLegacyTrait::assertEqual() is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertEquals() instead. See https://www.drupal.org/node/3129738', 124 'AssertLegacyTrait::assertText() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseContains() or $this->assertSession()->pageTextContains() instead. See https://www.drupal.org/node/3129738', 123 125 'UiHelperTrait::drupalPostForm() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use $this->submitForm() instead. See https://www.drupal.org/node/3168858', 120 120 "The \"Drupal\Tests\Listeners\DrupalListener\" class uses \"PHPUnit\Framework\TestListenerDefaultImplementation\" that is deprecated The `TestListener` interface is deprecated.", 121 121 "The \"PHPUnit\Framework\TestSuite\" class is considered internal This class is not covered by the backward compatibility promise for PHPUnit. It may change without further notice. You should not use it from \"Drupal\Tests\TestSuites\TestSuiteBase\".", 122 122 // Simpletest's legacy assertion methods. 123 'AssertLegacyTrait::assertEqual() is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertEquals() instead. See https://www.drupal.org/node/3129738', 124 'AssertLegacyTrait::assertText() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseContains() or $this->assertSession()->pageTextContains() instead. See https://www.drupal.org/node/3129738', added 1 commit
296 290 $this->rebuildContainer(); 297 291 298 292 // Create new moderated content in draft (revision 1). 299 $this->drupalPostForm('node/add/moderated_content', [ 300 'title[0][value]' => 'Some moderated content', 301 'body[0][value]' => 'First version of the content.', 302 'moderation_state[0][state]' => 'draft', 303 ], 'Save'); 293 $this->drupalGet('node/add/moderated_content'); 294 $this->submitForm(['title[0][value]' => 'Some moderated content', 'body[0][value]' => 'First version of the content.', 'moderation_state[0][state]' => 'draft'], 'Save'); Can we make this back to a multiline, like how it was. It improves the readability a lot. On multiple places.
Edited by daffiechanged this line in version 10 of the diff
added 6 commits
-
f15b8228...9fdc3fc6 - 4 commits from branch
project:9.2.x
- 569bf047 - Merge branch '9.2.x' into 3186661-may-24-2021
- 6749e46d - Change single line code to multi-line
-
f15b8228...9fdc3fc6 - 4 commits from branch
added 6 commits
-
6749e46d...3803c5a8 - 4 commits from branch
project:9.2.x
- 1b4824bd - Merge remote-tracking branch 'origin/9.2.x' into 3186661-may-24-2021
- d45f2eee - Remove deprecation skip.
-
6749e46d...3803c5a8 - 4 commits from branch
added 5 commits
-
24ee5c77...e197160d - 4 commits from branch
project:9.2.x
- 2aa6ae59 - Merge branch '9.2.x' into 3186661-may-24-2021
-
24ee5c77...e197160d - 4 commits from branch
Please register or sign in to reply