You are here

public function FieldGroupRowsWebTest::testUngroupedRows in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/src/Tests/Handler/FieldGroupRowsWebTest.php \Drupal\views\Tests\Handler\FieldGroupRowsWebTest::testUngroupedRows()

Testing when "Display all values in the same row" is unchecked.

File

core/modules/views/src/Tests/Handler/FieldGroupRowsWebTest.php, line 114
Contains \Drupal\views\Tests\Handler\FieldGroupRowsWebTest.

Class

FieldGroupRowsWebTest
Tests the "Display all values in the same row" setting.

Namespace

Drupal\views\Tests\Handler

Code

public function testUngroupedRows() {
  $this
    ->drupalGet('test-ungroup-rows');
  $result = $this
    ->cssSelect('div.views-field-field-views-testing-group- div');
  $rendered_value = [];
  foreach ($result as $row) {
    $rendered_value[] = (string) $row[0];
  }
  $this
    ->assertEqual([
    'a',
    'b',
    'c',
  ], $rendered_value);
}