diff --git a/tests/src/Kernel/EntityReferenceTest.php b/tests/src/Kernel/EntityReferenceTest.php
index fb9524a..b2803f2 100644
--- a/tests/src/Kernel/EntityReferenceTest.php
+++ b/tests/src/Kernel/EntityReferenceTest.php
@@ -2,6 +2,7 @@
 
 namespace Drupal\Tests\reference_table_formatter\Kernel;
 
+use Drupal\Component\Utility\DeprecationHelper;
 use Drupal\Core\Render\RenderContext;
 use Drupal\entity_test\Entity\EntityTest;
 use Drupal\entity_test\Entity\EntityTestBundle;
@@ -99,7 +100,7 @@ class EntityReferenceTest extends EntityKernelTestBase {
         'settings' => ['show_entity_label' => TRUE],
       ]);
     });
-    $this->setRawContent($this->renderer->renderPlain($build));
+    $this->setRawContent(DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.3.0', fn() => $this->renderer->renderInIsolation($build), fn() => $this->renderer->renderPlain($build)));
 
     $this->assertText($child_0->label());
     $this->assertText('Foo');
@@ -212,7 +213,7 @@ class EntityReferenceTest extends EntityKernelTestBase {
     $build = $this->renderer->executeInRenderContext(new RenderContext(), function () use ($parent) {
       return $parent->field_no_bundle->view(['type' => 'entity_reference_table']);
     });
-    $this->setRawContent($this->renderer->renderPlain($build));
+    $this->setRawContent(DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.3.0', fn() => $this->renderer->renderInIsolation($build), fn() => $this->renderer->renderPlain($build)));
     $this->assertText('Foo', 'Formatter should work for entities with no bundles.');
   }
 
@@ -271,7 +272,7 @@ class EntityReferenceTest extends EntityKernelTestBase {
         'settings' => ['show_entity_label' => TRUE],
       ]);
     });
-    $this->setRawContent($this->renderer->renderPlain($build));
+    $this->setRawContent(DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.3.0', fn() => $this->renderer->renderInIsolation($build), fn() => $this->renderer->renderPlain($build)));
 
     $this->assertText('Foo');
     $this->assertText('Bar');
@@ -346,7 +347,7 @@ class EntityReferenceTest extends EntityKernelTestBase {
     $build = $this->renderer->executeInRenderContext(new RenderContext(), function () use ($parent) {
       return $parent->field_reference->view(['type' => 'entity_reference_table']);
     });
-    $this->setRawContent($this->renderer->renderPlain($build));
+    $this->setRawContent(DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.3.0', fn() => $this->renderer->renderInIsolation($build), fn() => $this->renderer->renderPlain($build)));
 
     $this->assertText('Foo');
     $this->assertText('Bar');
