function FieldGroupRowsWebTest::testUngroupedRows

Same name in other branches
  1. 8.9.x core/modules/views/tests/src/Functional/Handler/FieldGroupRowsWebTest.php \Drupal\Tests\views\Functional\Handler\FieldGroupRowsWebTest::testUngroupedRows()
  2. 10 core/modules/views/tests/src/Functional/Handler/FieldGroupRowsWebTest.php \Drupal\Tests\views\Functional\Handler\FieldGroupRowsWebTest::testUngroupedRows()
  3. 11.x core/modules/views/tests/src/Functional/Handler/FieldGroupRowsWebTest.php \Drupal\Tests\views\Functional\Handler\FieldGroupRowsWebTest::testUngroupedRows()

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

File

core/modules/views/tests/src/Functional/Handler/FieldGroupRowsWebTest.php, line 114

Class

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

Namespace

Drupal\Tests\views\Functional\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[] = $row->getText();
    }
    $this->assertEquals([
        'a',
        'b',
        'c',
    ], $rendered_value);
}

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