public function ExportDataTest::testShowKeys in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/aklump/loft_data_grids/tests/phpunit/ExportDataTest.php \AKlump\LoftDataGrids\ExportDataTest::testShowKeys()
File
- vendor/
aklump/ loft_data_grids/ tests/ ExportDataTest.php, line 15 - Tests for the ExportData class
Class
Namespace
AKlump\LoftDataGridsCode
public function testShowKeys() {
$obj = $this->obj;
$obj
->setPage(0);
$control = array(
0 => array(
0 => array(),
1 => array(),
2 => array(),
),
1 => array(
0 => array(
'Color' => 'Black',
'Make' => 'Subaru',
),
1 => array(
'Color' => 'White',
'Make' => 'Hyundai',
),
),
);
$obj
->hideKeys(TRUE);
$this
->assertSame($control, $obj
->get());
$return = $obj
->showKeys('Age')
->getPage();
$control = array(
0 => array(
'Age' => 39,
),
1 => array(
'Age' => 37,
),
2 => array(
'Age' => 7,
),
);
$this
->assertSame($control, $return);
}