Issue #3244156 by daffie: Update the Drupal\KernelTests\Core\Entity\EntityQueryAggregateTest::testAggregation() a little to make it pass for SQL Server

merge-requests/1336/head
Alex Pott 2021-10-25 10:18:41 +01:00
parent 3dbf997274
commit a4b97b7406
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}