Inheritance: extends Piwik\Plugin\Report
 public function test_filter_shouldNotGenerateASegment_IfReportHasNoDimension()
 {
     $report = new Get();
     // VisitsSummary.get has no dimension
     $this->assertNull($report->getDimension());
     $this->assertSegmentForSegmentValueAndReport($report, $segmentValue = 'existing', false);
 }
 public function enrichProcessedReportIfVisitsSummaryGet(&$response, $infos)
 {
     if (empty($infos['parameters'][4]) || empty($response['reportData'])) {
         return;
     }
     $params = $infos['parameters'];
     $idSites = array($params[0]);
     $period = $params[1];
     $date = $params[2];
     $module = $params[3];
     $method = $params[4];
     if (!$this->isRequestingVisitsSummaryGet($module, $method)) {
         return;
     }
     $userId = new UserId();
     /** @var DataTable|DataTable\Map $dataTable */
     $dataTable = $response['reportData'];
     if (!$userId->hasDataTableUsers($dataTable) && !$userId->isUsedInAtLeastOneSite($idSites, $period, $date)) {
         $report = new Get();
         $report->removeUsersFromProcessedReport($response);
     }
 }