You are here

protected function AreaDisplayLinkTest::assertNoWarningMessages in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Kernel/Handler/AreaDisplayLinkTest.php \Drupal\Tests\views\Kernel\Handler\AreaDisplayLinkTest::assertNoWarningMessages()
  2. 9 core/modules/views/tests/src/Kernel/Handler/AreaDisplayLinkTest.php \Drupal\Tests\views\Kernel\Handler\AreaDisplayLinkTest::assertNoWarningMessages()

Assert no warning messages are shown when all display are equal.

@internal

Parameters

\Drupal\views\ViewExecutable $view: The view to check.

File

core/modules/views/tests/src/Kernel/Handler/AreaDisplayLinkTest.php, line 378

Class

AreaDisplayLinkTest
Tests the core views_handler_area_display_link handler.

Namespace

Drupal\Tests\views\Kernel\Handler

Code

protected function assertNoWarningMessages(ViewExecutable $view) : void {
  $messenger = $this->container
    ->get('messenger');
  $view
    ->validate();
  $this
    ->assertCount(0, $messenger
    ->messagesByType(MessengerInterface::TYPE_WARNING));
}