function LoggingTest::testGetLoggingWrongKey
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php \Drupal\KernelTests\Core\Database\LoggingTest::testGetLoggingWrongKey()
- 8.9.x core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php \Drupal\KernelTests\Core\Database\LoggingTest::testGetLoggingWrongKey()
- 10 core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php \Drupal\KernelTests\Core\Database\LoggingTest::testGetLoggingWrongKey()
Tests that getLog with a wrong key return an empty array.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Database/ LoggingTest.php, line 139
Class
- LoggingTest
- Tests the query logging facility.
Namespace
Drupal\KernelTests\Core\DatabaseCode
public function testGetLoggingWrongKey() : void {
$result = Database::getLog('wrong');
$this->assertEquals([], $result, 'The function getLog with a wrong key returns an empty array.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.