function DevelQueryDebugTest::getDrupalMessages

Same name in other branches
  1. 8.x-1.x tests/src/Kernel/DevelQueryDebugTest.php \Drupal\Tests\devel\Kernel\DevelQueryDebugTest::getDrupalMessages()
  2. 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 143

Class

DevelQueryDebugTest
Tests query debug.

Namespace

Drupal\Tests\devel\Kernel

Code

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