You are here

public function RuleTest::testSetGrouping in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/AutoFilter/Column/RuleTest.php \RuleTest::testSetGrouping()

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/AutoFilter/Column/RuleTest.php, line 78

Class

RuleTest

Code

public function testSetGrouping() {
  $expectedResult = PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP_MONTH;

  //	Setters return the instance to implement the fluent interface
  $result = $this->_testAutoFilterRuleObject
    ->setGrouping($expectedResult);
  $this
    ->assertInstanceOf('PHPExcel_Worksheet_AutoFilter_Column_Rule', $result);
  $result = $this->_testAutoFilterRuleObject
    ->getGrouping();
  $this
    ->assertEquals($expectedResult, $result);
}