You are here

public function UserPasswordFormTest::testConstructorDeprecations in Drupal 8

@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 \Drupal\user\Form\UserPasswordForm @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);
}