Unverified Commit 28327b11 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

(cherry picked from commit a4b97b74)
parent 7fb32c14
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
    }