diff --git a/tests/src/Unit/WebpTest.php b/tests/src/Unit/WebpTest.php
index db4a31f..3acf2d9 100644
--- a/tests/src/Unit/WebpTest.php
+++ b/tests/src/Unit/WebpTest.php
@@ -16,12 +16,9 @@ class WebpTest extends UnitTestCase {
    *
    * Create new unit object.
    */
-  public function setUp() {
+  public function setUp(): void {
     // Mock the class to avoid the constructor.
-    $this->webp = $this->getMockBuilder('\Drupal\webp\Webp')
-      ->disableOriginalConstructor()
-      ->setMethods(NULL)
-      ->getMock();
+    $this->webp = $this->createMock('\Drupal\webp\Webp');
   }
 
   /**
diff --git a/webp.info.yml b/webp.info.yml
index 0ecb91b..e8ec541 100644
--- a/webp.info.yml
+++ b/webp.info.yml
@@ -1,7 +1,7 @@
 name: WebP
 type: module
 description: Generates WebP copies of image style derivatives.
-core_version_requirement: ^8 || ^9
+core_version_requirement: ^8 || ^9 || ^10
 package: Other
 configure: webp.settings_form
 dependencies:
