コード例 #1
0
 public function testRemoveColumn()
 {
     $this->configuration->addColumn('testColumn', ['param' => 123], null, ['param' => 123], ['param' => 123]);
     $configArray = $this->configuration->toArray();
     $this->assertTrue(isset($configArray['columns']['testColumn']));
     $this->configuration->removeColumn('testColumn');
     $configArray = $this->configuration->toArray();
     $this->assertEmpty($configArray['columns']);
     $this->assertEmpty($configArray['sorters']['columns']);
     $this->assertEmpty($configArray['filters']['columns']);
 }