You are here

public function RuleTest::testSetValue 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::testSetValue()

File

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

Class

RuleTest

Code

public function testSetValue() {
  $expectedResult = 100;

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