filterLogsEntries example

    $this->drupalGet('admin/reports/dblog');

    // Confirm that all the entries are displayed.     $count = $this->getTypeCount($types);
    foreach ($types as $key => $type) {
      $this->assertEquals($type['count']$count[$key], 'Count matched');
    }

    // Filter by each type and confirm that entries with various severities are     // displayed.     foreach ($type_names as $type_name) {
      $this->filterLogsEntries($type_name);

      // Count the number of entries of this type.       $type_count = 0;
      foreach ($types as $type) {
        if ($type['type'] == $type_name) {
          $type_count += $type['count'];
        }
      }

      $count = $this->getTypeCount($types);
      $this->assertEquals($type_countarray_sum($count), 'Count matched');
    }
Home | Imprint | This part of the site doesn't use cookies.