protected function ScheduledTransitionTest::getLogBuffer in Scheduled Transitions 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/ScheduledTransitionTest.php \Drupal\Tests\scheduled_transitions\Kernel\ScheduledTransitionTest::getLogBuffer()
Gets logs from buffer and cleans out buffer.
@array Logs from buffer, where values are an array with keys: severity, message.
2 calls to ScheduledTransitionTest::getLogBuffer()
- ScheduledTransitionTest::getLogs in tests/
src/ Kernel/ ScheduledTransitionTest.php - Gets logs from buffer and cleans out buffer.
- ScheduledTransitionTest::testLogsDeletedState in tests/
src/ Kernel/ ScheduledTransitionTest.php - Test when a default or latest revision use a state that no longer exists.
File
- tests/
src/ Kernel/ ScheduledTransitionTest.php, line 743
Class
- ScheduledTransitionTest
- Tests basic functionality of scheduled_transitions fields.
Namespace
Drupal\Tests\scheduled_transitions\KernelCode
protected function getLogBuffer() : array {
return $this->container
->get($this->testLoggerServiceName)
->cleanLogs();
}