public addSummaryRow ( |
||
$row | ||
return | Returns `$row`. |
public function addSummaryRow(Row $row)
{
$this->summaryRow = $row;
// add summary row to index
if (!$this->indexNotUpToDate && $this->rebuildIndexContinuously) {
$label = $row->getColumn('label');
if ($label !== false) {
$this->rowsIndexByLabel[$label] = self::ID_SUMMARY_ROW;
}
}
return $row;
}
public function test_filter_shouldIgnoreSummaryRow() { $row = $this->buildRow(array('label' => 'other')); $this->table->addSummaryRow($row); $this->table->filter($this->filter, array('UTC', 'day', 'today')); $this->assertFalse($row->getMetadata('segmentValue')); }