Skip to content
Snippets Groups Projects
Unverified Commit a4b97b74 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3244156 by daffie: Update the...

Issue #3244156 by daffie: Update the Drupal\KernelTests\Core\Entity\EntityQueryAggregateTest::testAggregation() a little to make it pass for SQL Server
parent 3dbf9972
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@ public function testAggregation() {
// 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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment