Unverified Commit 982d1ce9 authored by alexpott's avatar alexpott
Browse files

Issue #2998731 by zuhair_ak, msankhala, longwave: Remove $context['user'] from...

Issue #2998731 by zuhair_ak, msankhala, longwave: Remove $context['user'] from DbLogTest and FakeLogEntries
parent 03a3058d
......@@ -477,7 +477,6 @@ public function testDBLogAddAndClear() {
'variables' => [],
'severity' => RfcLogLevel::NOTICE,
'link' => NULL,
'user' => $this->adminUser,
'uid' => $this->adminUser->id(),
'request_uri' => $base_root . \Drupal::request()->getRequestUri(),
'referer' => \Drupal::request()->server->get('HTTP_REFERER'),
......
......@@ -27,7 +27,6 @@ trait FakeLogEntries {
* - 'variables': Array of variables that match the message string.
* - 'severity': Log severity level as defined in logging_severity_levels.
* - 'link': String linking to view the result of the event.
* - 'user': String identifying the username.
* - 'uid': Int identifying the user id for the user.
* - 'request_uri': String identifying the location of the request.
* - 'referer': String identifying the referring url.
......@@ -47,7 +46,6 @@ private function generateLogEntries($count, $options = []) {
'variables' => [],
'severity' => RfcLogLevel::NOTICE,
'link' => NULL,
'user' => $user,
'uid' => $user->id(),
'request_uri' => $base_root . \Drupal::request()->getRequestUri(),
'referer' => \Drupal::request()->server->get('HTTP_REFERER'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment