You are here

public function QueryGroupByTest::testGroupByAverage in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Kernel/QueryGroupByTest.php \Drupal\Tests\views\Kernel\QueryGroupByTest::testGroupByAverage()

Tests the average aggregation function.

File

core/modules/views/tests/src/Kernel/QueryGroupByTest.php, line 157

Class

QueryGroupByTest
Tests aggregate functionality of views, for example count.

Namespace

Drupal\Tests\views\Kernel

Code

public function testGroupByAverage() {
  $this
    ->groupByTestHelper('avg', [
    2.5,
    6,
  ]);
}