diff options
author | catch <catch@35733.no-reply.drupal.org> | 2024-06-19 13:45:54 +0100 |
---|---|---|
committer | catch <catch@35733.no-reply.drupal.org> | 2024-06-19 13:45:54 +0100 |
commit | a9f3d0ec7eb7680b4b52c466c3e0868663bb77ab (patch) | |
tree | 960b957b08dd04e418275a307673cef262c09bc6 /core/modules/ban | |
parent | e2d8242830e89fd465d88c1f3d81af39a76af02e (diff) | |
download | drupal-a9f3d0ec7eb7680b4b52c466c3e0868663bb77ab.tar.gz drupal-a9f3d0ec7eb7680b4b52c466c3e0868663bb77ab.zip |
Issue #3421418 by mstrelan, Spokje, xjm, mondrake, longwave, acbramley: Add void return typehints to all test methods
Diffstat (limited to 'core/modules/ban')
3 files changed, 4 insertions, 4 deletions
diff --git a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php index ee1aeb29f0a..94bd146e716 100644 --- a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php +++ b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php @@ -30,7 +30,7 @@ class IpAddressBlockingTest extends BrowserTestBase { /** * Tests various user input to confirm correct validation and saving of data. */ - public function testIPAddressValidation() { + public function testIPAddressValidation(): void { // Create user. $admin_user = $this->drupalCreateUser(['ban IP addresses']); $this->drupalLogin($admin_user); diff --git a/core/modules/ban/tests/src/Kernel/Migrate/d7/MigrateBlockedIpsTest.php b/core/modules/ban/tests/src/Kernel/Migrate/d7/MigrateBlockedIpsTest.php index 4e9f0e0e496..a8177d312f4 100644 --- a/core/modules/ban/tests/src/Kernel/Migrate/d7/MigrateBlockedIpsTest.php +++ b/core/modules/ban/tests/src/Kernel/Migrate/d7/MigrateBlockedIpsTest.php @@ -34,7 +34,7 @@ class MigrateBlockedIpsTest extends MigrateDrupal7TestBase { /** * Tests migration of blocked IPs. */ - public function testBlockedIps() { + public function testBlockedIps(): void { $this->startCollectingMessages(); $this->executeMigration('d7_blocked_ips'); $this->assertEmpty($this->migrateMessages); diff --git a/core/modules/ban/tests/src/Unit/BanMiddlewareTest.php b/core/modules/ban/tests/src/Unit/BanMiddlewareTest.php index 4b43d161715..77b9b87d934 100644 --- a/core/modules/ban/tests/src/Unit/BanMiddlewareTest.php +++ b/core/modules/ban/tests/src/Unit/BanMiddlewareTest.php @@ -51,7 +51,7 @@ class BanMiddlewareTest extends UnitTestCase { /** * Tests a banned IP. */ - public function testBannedIp() { + public function testBannedIp(): void { $banned_ip = '17.0.0.2'; $this->banManager->expects($this->once()) ->method('isBanned') @@ -71,7 +71,7 @@ class BanMiddlewareTest extends UnitTestCase { /** * Tests an unbanned IP. */ - public function testUnbannedIp() { + public function testUnbannedIp(): void { $unbanned_ip = '18.0.0.2'; $this->banManager->expects($this->once()) ->method('isBanned') |