You are here

protected function ExposedFormUITest::assertNoGroupedFilterErrors in Drupal 9

Same name and namespace in other branches
  1. 8 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()

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 303

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) {
    if (empty($message)) {
      return $this
        ->assertSession()
        ->responseNotContains($error);
    }
  }
  return TRUE;
}