protected function AreaDisplayLinkTest::assertNoWarningMessages in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Kernel/Handler/AreaDisplayLinkTest.php \Drupal\Tests\views\Kernel\Handler\AreaDisplayLinkTest::assertNoWarningMessages()
- 10 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.
Parameters
\Drupal\views\ViewExecutable $view: The view to check.
1 call to AreaDisplayLinkTest::assertNoWarningMessages()
- AreaDisplayLinkTest::testAreaDisplayLink in core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaDisplayLinkTest.php - Tests the views area display_link handler.
File
- core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaDisplayLinkTest.php, line 372
Class
- AreaDisplayLinkTest
- Tests the core views_handler_area_display_link handler.
Namespace
Drupal\Tests\views\Kernel\HandlerCode
protected function assertNoWarningMessages(ViewExecutable $view) {
$messenger = $this->container
->get('messenger');
$view
->validate();
$this
->assertCount(0, $messenger
->messagesByType(MessengerInterface::TYPE_WARNING));
}