diff --git a/tests/src/Functional/AnonymousFlagTest.php b/tests/src/Functional/AnonymousFlagTest.php
index 3dd6971..b8c3ffa 100644
--- a/tests/src/Functional/AnonymousFlagTest.php
+++ b/tests/src/Functional/AnonymousFlagTest.php
@@ -2,8 +2,6 @@
 
 namespace Drupal\Tests\flag\Functional;
 
-use Behat\Mink\Session;
-use Drupal\Core\Session\AccountInterface;
 use Drupal\Core\Url;
 use Drupal\flag\Entity\Flag;
 use Drupal\flag\Entity\Flagging;
diff --git a/tests/src/Functional/OutputLocationEntityFormAccessTest.php b/tests/src/Functional/OutputLocationEntityFormAccessTest.php
index e62ce84..7e16296 100644
--- a/tests/src/Functional/OutputLocationEntityFormAccessTest.php
+++ b/tests/src/Functional/OutputLocationEntityFormAccessTest.php
@@ -2,15 +2,10 @@
 
 namespace Drupal\Tests\flag\Functional;
 
-use Drupal\Core\Session\AccountInterface;
-use Drupal\Core\Url;
 use Drupal\flag\Entity\Flag;
-use Drupal\flag\Entity\Flagging;
 use Drupal\node\Entity\Node;
 use Drupal\node\Entity\NodeType;
 use Drupal\Tests\BrowserTestBase;
-use Drupal\user\RoleInterface;
-use Drupal\user\Entity\Role;
 
 /**
  * Tests the entity form checkbox output respects flag access control.
