diff --git a/tests/src/Kernel/DestinationIdsIndexTest.php b/tests/src/Kernel/DestinationIdsIndexTest.php
index 07a3459..a359ffa 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);
