
| Current Path : /var/www/html_old/12park.001/web/core/modules/user/tests/src/Kernel/Form/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html_old/12park.001/web/core/modules/user/tests/src/Kernel/Form/UserPasswordFormTest.php |
<?php
namespace Drupal\Tests\user\Kernel\Form;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\KernelTests\KernelTestBase;
use Drupal\user\Form\UserPasswordForm;
use Drupal\user\UserStorageInterface;
/**
* @coversDefaultClass \Drupal\user\Form\UserPasswordForm
* @group user
*/
class UserPasswordFormTest extends KernelTestBase {
/**
* @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
*/
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);
}
}