You are here

protected function DevelQueryDebugTest::getDrupalMessages in Devel 8.3

Same name and namespace in other branches
  1. 8 tests/src/Kernel/DevelQueryDebugTest.php \Drupal\Tests\devel\Kernel\DevelQueryDebugTest::getDrupalMessages()
  2. 8.2 tests/src/Kernel/DevelQueryDebugTest.php \Drupal\Tests\devel\Kernel\DevelQueryDebugTest::getDrupalMessages()
  3. 4.x tests/src/Kernel/DevelQueryDebugTest.php \Drupal\Tests\devel\Kernel\DevelQueryDebugTest::getDrupalMessages()

Retrieves and removes the drupal messages.

Return value

array The messages

2 calls to DevelQueryDebugTest::getDrupalMessages()
DevelQueryDebugTest::testEntityQueryDebugTag in tests/src/Kernel/DevelQueryDebugTest.php
Tests devel_query_debug_alter() for entity queries.
DevelQueryDebugTest::testSelectQueryDebugTag in tests/src/Kernel/DevelQueryDebugTest.php
Tests devel_query_debug_alter() for select queries.

File

tests/src/Kernel/DevelQueryDebugTest.php, line 132

Class

DevelQueryDebugTest
Tests query debug.

Namespace

Drupal\Tests\devel\Kernel

Code

protected function getDrupalMessages() {
  return $this
    ->messenger()
    ->deleteAll();
}