[ticket/634] Increase test coverage of acp module
B3P-634
This commit is contained in:
@@ -29,10 +29,15 @@ class template
|
||||
$this->data[$row] = array();
|
||||
}
|
||||
|
||||
$index = (sizeof($this->data[$row])) ? sizeof($this->data[$row]) : 0;
|
||||
foreach ($values as $key => $column)
|
||||
{
|
||||
$this->test_case->assertArrayNotHasKey($key, $this->data[$row]);
|
||||
$this->data[$row][$key] = $column;
|
||||
if (!isset($this->data[$row][$index]))
|
||||
{
|
||||
$this->data[$row][$index] = array();
|
||||
}
|
||||
$this->data[$row][$index][$key] = $column;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,4 +68,9 @@ class template
|
||||
{
|
||||
unset($this->data[$key]);
|
||||
}
|
||||
|
||||
public function get_row($row)
|
||||
{
|
||||
return $this->data[$row];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user