Skip to content
Snippets Groups Projects
Commit 4a3abc4e authored by catch's avatar catch
Browse files

Issue #3166543 by mondrake, partyka, longwave, larowlan, Lendude: Deprecate...

Issue #3166543 by mondrake, partyka, longwave, larowlan, Lendude: Deprecate UiHelperTrait::drupalPostForm, keep deprecation silenced
parent b1133f1d
No related branches found
No related tags found
No related merge requests found
......@@ -121,6 +121,7 @@ public static function getSkippedDeprecations() {
"The \"Drupal\Tests\Listeners\DrupalListener\" class uses \"PHPUnit\Framework\TestListenerDefaultImplementation\" that is deprecated The `TestListener` interface is deprecated.",
"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\".",
// Simpletest's legacy assertion methods.
'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',
'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',
'AssertLegacyTrait::assertNotEqual() is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertNotEquals() instead. See https://www.drupal.org/node/3129738',
'AssertLegacyTrait::assertIdentical() is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertSame() instead. See https://www.drupal.org/node/3129738',
......
......@@ -188,8 +188,14 @@ protected function submitForm(array $edit, $submit, $form_html_id = NULL) {
* just use the webAssert object for your assertions.
*
* @see \Drupal\Tests\WebAssert::buttonExists()
*
* @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
*/
protected function drupalPostForm($path, $edit, $submit, array $options = [], $form_html_id = NULL) {
@trigger_error('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', E_USER_DEPRECATED);
if (is_object($submit)) {
// Cast MarkupInterface objects to string.
$submit = (string) $submit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment