- Issue created by @batigolix
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 4:01pm 20 February 2023 - Assigned to fabianderijk
-
fabianderijk β
committed 32e0964b on 2.3.x authored by
batigolix β
Issue #3343193 by batigolix: Add tests for user and IP login attempts
-
fabianderijk β
committed 32e0964b on 2.3.x authored by
batigolix β
- Status changed to Fixed
over 1 year ago 10:35am 24 February 2023 - π³π±Netherlands fabianderijk Alphen aan den Rijn
This is fixed in the dev version, will create a new release version today.
- Status changed to Needs work
over 1 year ago 7:39am 27 February 2023 - π³π±Netherlands daffie
+++ b/tests/src/Functional/FloodControlLoginTest.php @@ -0,0 +1,109 @@ + /** + * A regular user. + * + * @var \Drupal\user\Entity\User + */ + protected $webUser; ... + /** + * The module installer. + * + * @var \Drupal\Core\Extension\ModuleInstallerInterface + */ + protected $moduleInstaller; ... + /** + * {@inheritdoc} + */ + protected function setUp(): void { + parent::setUp(); + $this->moduleInstaller = $this->container->get('module_installer'); + + // Defines a user that can configure the module. + $this->adminUser = $this->createUser(['administer site configuration']); + + // Defines a user that can unblock. + $this->unblockUser = $this->drupalCreateUser(['access flood unblock']); + }
T
All this code can be removed. It is not necessary. The rest of the test looks great! - Status changed to Fixed
over 1 year ago 9:00am 27 February 2023 Automatically closed - issue fixed for 2 weeks with no activity.