You are here

public function QueryGroupByTest::testGroupByAverage in Zircon Profile 8

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

Tests the average aggregation function.

File

core/modules/views/src/Tests/QueryGroupByTest.php, line 156
Contains \Drupal\views\Tests\QueryGroupByTest.

Class

QueryGroupByTest
Tests aggregate functionality of views, for example count.

Namespace

Drupal\views\Tests

Code

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