You are here

public function StubConnection::testLogCaller in Drupal 9

Helper method to test database classes are not included in backtraces.

Return value

array The caller stack entry.

File

core/tests/Drupal/Tests/Core/Database/Stub/StubConnection.php, line 109

Class

StubConnection
A stub of the abstract Connection class for testing purposes.

Namespace

Drupal\Tests\Core\Database\Stub

Code

public function testLogCaller() {
  return (new Log())
    ->findCaller();
}