protected function ConfigSelectorTest::assertLogMessages in Configuration selector 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/ConfigSelectorTest.php \Drupal\Tests\config_selector\Kernel\ConfigSelectorTest::assertLogMessages()
Asserts the logger has messages.
Parameters
string[] $messages: (optional) The messages we expect the logger to have. Defaults to an empty array.
string $level: (optional) The log level of the expected messages. Defaults to \Psr\Log\LogLevel::INFO.
2 calls to ConfigSelectorTest::assertLogMessages()
- ConfigSelectorTest::testConfigSelector in tests/
src/ Kernel/ ConfigSelectorTest.php - Tests \Drupal\config_selector\ConfigSelector().
- ConfigSelectorTest::testConfigSelectorIndirectDependency in tests/
src/ Kernel/ ConfigSelectorTest.php - Tests \Drupal\config_selector\ConfigSelector().
File
- tests/
src/ Kernel/ ConfigSelectorTest.php, line 372
Class
- ConfigSelectorTest
- Tests the ConfigSelector.
Namespace
Drupal\Tests\config_selector\KernelCode
protected function assertLogMessages(array $messages = [], $level = LogLevel::INFO) {
$this
->assertEquals($messages, $this->container
->get('config_selector.test_logger')
->getLogs($level));
}