class UserLoginFormTest
@coversDefaultClass \Drupal\user\Form\UserLoginForm
@group user
Hierarchy
- class \Drupal\KernelTests\KernelTestBase implements \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\user\Kernel\Form\UserLoginFormTest extends \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of UserLoginFormTest
File
-
core/
modules/ user/ tests/ src/ Kernel/ Form/ UserLoginFormTest.php, line 17
Namespace
Drupal\Tests\user\Kernel\FormView source
class UserLoginFormTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'user',
];
/**
* @group legacy
*/
public function testConstructorDeprecations() {
$this->expectDeprecation('Passing the flood service to Drupal\\user\\Form\\UserLoginForm::__construct is deprecated in drupal:9.1.0 and is replaced by user.flood_control in drupal:10.0.0. See https://www.drupal.org/node/3067148');
$flood = $this->prophesize(FloodInterface::class);
$user_storage = $this->prophesize(UserStorageInterface::class);
$user_auth = $this->prophesize(UserAuthInterface::class);
$renderer = $this->prophesize(RendererInterface::class);
$bare_html_renderer = $this->prophesize(BareHtmlPageRendererInterface::class);
$form = new UserLoginForm($flood->reveal(), $user_storage->reveal(), $user_auth->reveal(), $renderer->reveal(), $bare_html_renderer->reveal());
$this->assertNotNull($form);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.