diff --git a/tests/src/Kernel/DestinationIdsIndexTest.php b/tests/src/Kernel/DestinationIdsIndexTest.php
index 07a3459..d96fa21 100644
--- a/tests/src/Kernel/DestinationIdsIndexTest.php
+++ b/tests/src/Kernel/DestinationIdsIndexTest.php
@@ -60,9 +60,7 @@ class DestinationIdsIndexTest extends MigrateTestBase {
 
     $manager = $this->container->get('plugin.manager.migration');
     $this->migration = $manager->createStubMigration(static::TEST_MIGRATION);
-    $this->destination = $this->getMockBuilder(MigrateDestinationInterface::class)
-      ->disableOriginalConstructor()
-      ->getMock();
+    $this->destination = $this->createMock(MigrateDestinationInterface::class);
     $migration_reflection = new \ReflectionClass($this->migration);
     $migration_destination = $migration_reflection->getProperty('destinationPlugin');
     $migration_destination->setAccessible(TRUE);
@@ -115,7 +113,7 @@ class DestinationIdsIndexTest extends MigrateTestBase {
    * @return array[][]
    *   The test cases.
    */
-  public function providerTestDestinationIdIndexes(): array {
+  public static function providerTestDestinationIdIndexes(): array {
     return [
       'Single integer destination' => [
         'Dest IDs' => [
diff --git a/tests/src/Kernel/SmartSqlMigrateExecutableTest.php b/tests/src/Kernel/SmartSqlMigrateExecutableTest.php
index 9016d65..b8d0908 100644
--- a/tests/src/Kernel/SmartSqlMigrateExecutableTest.php
+++ b/tests/src/Kernel/SmartSqlMigrateExecutableTest.php
@@ -102,7 +102,7 @@ class SmartSqlMigrateExecutableTest extends MigrateTestBase {
    * @return array
    *   The test cases.
    */
-  public function providerTestSmartSqlMigrateExecutableCompatibility() {
+  public static function providerTestSmartSqlMigrateExecutableCompatibility() {
     return [
       'Rollback delete' => [
         'Source records' => [
