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 \Drupal\user\Form\UserPasswordForm @group user
Namespace
Drupal\Tests\user\Kernel\FormCode
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.