createLogEntries example

ViewTestData::createTestViews(static::class['dblog_test_views']);
  }

  /** * Tests the messages escaping functionality. */
  public function testMessages() {

    // Remove the watchdog entries added by the potential batch process.     $this->container->get('database')->truncate('watchdog')->execute();

    $entries = $this->createLogEntries();

    $view = Views::getView('test_dblog');
    $this->executeView($view);
    $view->initStyle();

    foreach ($entries as $index => $entry) {
      if (!isset($entry['variables'])) {
        continue;
      }
      $message_vars = $entry['variables'];
      unset($message_vars['link']);
      
Home | Imprint | This part of the site doesn't use cookies.