/** * @param mixed $configValue * @param bool $expectedResult * @dataProvider isSetFlagDataProvider */ public function testIsSetFlag($configValue, $expectedResult) { $path = 'some path'; $configData = $this->getConfigDataMock('getValue'); $configData->expects($this->once())->method('getValue')->with($this->equalTo($path))->will($this->returnValue($configValue)); $this->sectionPool->expects($this->once())->method('getScope')->with($this->equalTo('default'), $this->isNull())->will($this->returnValue($configData)); $this->assertEquals($expectedResult, $this->model->isSetFlag($path)); }