Skip to content
Snippets Groups Projects

Issue #3186661: [May 24, 2021] Remove usage of drupalPostForm

Issue #3186661: [May 24, 2021] Remove usage of drupalPostForm
3 unresolved threads
Open Dave Long requested to merge issue/drupal-3186661:3186661-may-24-2021 into 9.2.x

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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',
  • Developer

    This line should be removed. That is the way we know we got them all.

  • Crap, got the merge the wrong way around :/

  • Developer

    The line has not been removed from the MR. The line: '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',

  • Developer

    This is fixed. This thread can be marked as resolved.

  • Please register or sign in to reply
  • 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',
  • spokje added 1 commit

    added 1 commit

    Compare with previous version

  • spokje added 2 commits

    added 2 commits

    • 7b927eb9 - 1 commit from branch project:9.2.x
    • f15b8228 - Merge branch '9.2.x' into 3186661-may-24-2021

    Compare with previous version

  • 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');
  • added 6 commits

    Compare with previous version

  • Dave Long added 6 commits

    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.

    Compare with previous version

  • spokje added 1 commit

    added 1 commit

    Compare with previous version

  • spokje added 2 commits

    added 2 commits

    • a4f3ff93 - 1 commit from branch project:9.2.x
    • 24ee5c77 - Merge branch '9.2.x' into 3186661-may-24-2021

    Compare with previous version

  • spokje added 5 commits

    added 5 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading