getMetricTotalValue() public method

public getMetricTotalValue ( DataTable $currentReport, $metric )
$currentReport Piwik\DataTable
Example #1
0
 public function test_getMetricTotalValue_shouldReturnZeroIfMetricHasNoTotal()
 {
     $table = new DataTable();
     $table->setMetadata('totals', array('nb_visits' => '17'));
     $total = $this->model->getMetricTotalValue($table, 'unknown_metric');
     $this->assertEquals(0, $total);
 }