From a4b97b7406af56e90de597dfb753b193fa2211a5 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Mon, 25 Oct 2021 10:18:41 +0100 Subject: [PATCH] Issue #3244156 by daffie: Update the Drupal\KernelTests\Core\Entity\EntityQueryAggregateTest::testAggregation() a little to make it pass for SQL Server --- .../Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php index b0cfc72804d4..796f6ca1391e 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php @@ -139,7 +139,7 @@ class EntityQueryAggregateTest extends EntityKernelTestBase { // We need to check that a character exists before and after the table, // column and alias identifiers. These would be the quote characters // specific for each database system. - $this->assertMatchesRegularExpression('/' . $aggregation_function . '\(.entity_test.\..id.\) AS .id_' . $aggregation_function . './', (string) $query, 'The argument to the aggregation function should be a quoted field.'); + $this->assertMatchesRegularExpression('/' . $aggregation_function . '\(.*entity_test.\..id.\).* AS .id_' . $aggregation_function . './', (string) $query, 'The argument to the aggregation function should be a quoted field.'); $this->assertEquals($expected, $this->queryResult); }