From 93e9e36c51d8d1ec84a12f927b365d4a912c4bee Mon Sep 17 00:00:00 2001 From: Lee Rowlands <lee.rowlands@previousnext.com.au> Date: Fri, 8 Oct 2021 15:14:33 +1000 Subject: [PATCH] Issue #3241308 by alexpott: core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php triggers deprecations on PHP 8.1 --- .../Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php index 113543d702c2..5753f1a7d702 100644 --- a/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php @@ -362,6 +362,9 @@ public function testGetFieldTableName($table_names, $expected) { ->expects($this->any()) ->method('getColumns') ->willReturn($columns); + $definition->expects($this->any()) + ->method('getTargetEntityTypeId') + ->willReturn('entity_test'); $this->entityType ->expects($this->any()) -- GitLab