protected function SolrBackendTestBase::assertLogMessage in Search API Solr 8.3
Same name and namespace in other branches
- 8.2 tests/src/Kernel/SolrBackendTestBase.php \Drupal\Tests\search_api_solr\Kernel\SolrBackendTestBase::assertLogMessage()
- 4.x tests/src/Kernel/SolrBackendTestBase.php \Drupal\Tests\search_api_solr\Kernel\SolrBackendTestBase::assertLogMessage()
Tests the last logged level and message.
File
- tests/
src/ Kernel/ SolrBackendTestBase.php, line 112
Class
- SolrBackendTestBase
- Tests location searches and distance facets using the Solr search backend.
Namespace
Drupal\Tests\search_api_solr\KernelCode
protected function assertLogMessage($level, $message) {
$last_message = $this->logger
->getLastMessage();
$this
->assertEquals($level, $last_message['level']);
$this
->assertEquals($message, $last_message['message']);
}