Issue #3244156 by daffie: Update the Drupal\KernelTests\Core\Entity\EntityQueryAggregateTest::testAggregation() a little to make it pass for SQL Server
parent
3dbf997274
commit
a4b97b7406
|
@ -139,7 +139,7 @@ class EntityQueryAggregateTest extends EntityKernelTestBase {
|
||||||
// We need to check that a character exists before and after the table,
|
// We need to check that a character exists before and after the table,
|
||||||
// column and alias identifiers. These would be the quote characters
|
// column and alias identifiers. These would be the quote characters
|
||||||
// specific for each database system.
|
// 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);
|
$this->assertEquals($expected, $this->queryResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue