You are here

public function UserControllerTest::testConstructorDeprecations in Drupal 8

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

File

core/modules/user/tests/src/Kernel/Controller/UserControllerTest.php, line 22

Class

UserControllerTest
@coversDefaultClass \Drupal\user\Controller\UserController @group user

Namespace

Drupal\Tests\user\Kernel\Controller

Code

public function testConstructorDeprecations() {
  $date_formatter = $this
    ->prophesize(DateFormatterInterface::class);
  $user_storage = $this
    ->prophesize(UserStorageInterface::class);
  $user_data = $this
    ->prophesize(UserDataInterface::class);
  $logger = $this
    ->prophesize(LoggerInterface::class);
  $controller = new UserController($date_formatter
    ->reveal(), $user_storage
    ->reveal(), $user_data
    ->reveal(), $logger
    ->reveal());
  $this
    ->assertNotNull($controller);
}