You are here

protected function SearchApiSolrLocationTest::assertLogMessage in Search API Solr 8

1 call to SearchApiSolrLocationTest::assertLogMessage()
SearchApiSolrLocationTest::testBackend in tests/src/Kernel/SearchApiSolrLocationTest.php
Tests location searches and distance facets.

File

tests/src/Kernel/SearchApiSolrLocationTest.php, line 136

Class

SearchApiSolrLocationTest
Tests location searches and distance facets using the Solr search backend.

Namespace

Drupal\Tests\search_api_solr\Kernel

Code

protected function assertLogMessage($level, $message) {
  $last_message = $this->logger
    ->getLastMessage();
  $this
    ->assertEquals($level, $last_message['level']);
  $this
    ->assertEquals($message, $last_message['message']);
}