function AggregationTest::testSimpleResultSet

Tests a trivial result set.

File

core/modules/views/tests/src/Kernel/AggregationTest.php, line 40

Class

AggregationTest
A basic aggregation test for Views.

Namespace

Drupal\Tests\views\Kernel

Code

public function testSimpleResultSet() : void {
  $view = Views::getView('test_aggregation');
  $view->setDisplay();
  // Execute the view.
  $this->executeView($view);
  // Verify the result.
  $this->assertCount(1, $view->result, 'The number of returned rows match.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.