You are here

public function AutofilterColumnTest::testSetFilterType in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/AutoFilter/ColumnTest.php \AutofilterColumnTest::testSetFilterType()

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/AutoFilter/ColumnTest.php, line 70

Class

AutofilterColumnTest

Code

public function testSetFilterType() {
  $result = $this->_testAutoFilterColumnObject
    ->setFilterType(PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_DYNAMICFILTER);
  $this
    ->assertInstanceOf('PHPExcel_Worksheet_AutoFilter_Column', $result);
  $result = $this->_testAutoFilterColumnObject
    ->getFilterType();
  $this
    ->assertEquals(PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_DYNAMICFILTER, $result);
}