function UserPasswordFormTest::testConstructorDeprecations

@group legacy @expectedDeprecation Calling Drupal\user\Form\UserPasswordForm::__construct without the $config_factory is deprecated in drupal:8.8.0 and is required before drupal:9.0.0. See https://www.drupal.org/node/1681832 @expectedDeprecation Calling Drupal\user\Form\UserPasswordForm::__construct without the $flood parameter is deprecated in drupal:8.8.0 and is required before drupal:9.0.0. See https://www.drupal.org/node/1681832

File

core/modules/user/tests/src/Kernel/Form/UserPasswordFormTest.php, line 21

Class

UserPasswordFormTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21user%21src%21Form%21UserPasswordForm.php/class/UserPasswordForm/8.9.x" title="Provides a user password reset form." class="local">\Drupal\user\Form\UserPasswordForm</a> @group user

Namespace

Drupal\Tests\user\Kernel\Form

Code

public function testConstructorDeprecations() {
    $user_storage = $this->prophesize(UserStorageInterface::class);
    $language_manager = $this->prophesize(LanguageManagerInterface::class);
    $form = new UserPasswordForm($user_storage->reveal(), $language_manager->reveal());
    $this->assertNotNull($form);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.