function ExposedFormUITest::assertNoGroupedFilterErrors

Same name and namespace in other branches
  1. 9 core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php \Drupal\Tests\views_ui\Functional\ExposedFormUITest::assertNoGroupedFilterErrors()
  2. 10 core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php \Drupal\Tests\views_ui\Functional\ExposedFormUITest::assertNoGroupedFilterErrors()
  3. 11.x core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php \Drupal\Tests\views_ui\Functional\ExposedFormUITest::assertNoGroupedFilterErrors()

Asserts that there are no Grouped Filters errors.

Parameters

string $message: The assert message.

string $group: The assertion group.

Return value

bool Result of the assertion.

1 call to ExposedFormUITest::assertNoGroupedFilterErrors()
ExposedFormUITest::testGroupedFilterAdminUi in core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php
Tests the admin interface of exposed grouped filters.

File

core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php, line 267

Class

ExposedFormUITest
Tests exposed forms UI functionality.

Namespace

Drupal\Tests\views_ui\Functional

Code

protected function assertNoGroupedFilterErrors($message = '', $group = 'Other') {
    foreach ($this->groupFormUiErrors as $error) {
        $err_message = $message;
        if (empty($err_message)) {
            $err_message = "Verify that '{$error}' is not in the HTML output.";
        }
        if (empty($message)) {
            return $this->assertNoRaw($error, $err_message, $group);
        }
    }
    return TRUE;
}

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