30 $this->appConfig = $this->createPartialMock(\
Magento\Framework\
App\Config::class, [
'get']);
31 $this->model = new \Magento\Backend\App\Config($this->appConfig);
36 $expectedValue =
'some value';
38 $this->appConfig->expects(
43 $this->equalTo(
'system'),
44 $this->equalTo(
'default/' .
$path),
47 $this->returnValue($expectedValue)
49 $this->assertEquals($expectedValue, $this->model->getValue(
$path));
58 public function testIsSetFlag($configPath, $configValue, $expectedResult)
60 $this->appConfig->expects(
65 $this->equalTo(
'system'),
66 $this->equalTo(
'default/' . $configPath)
68 $this->returnValue($configValue)
70 $this->assertEquals($expectedResult, $this->model->isSetFlag($configPath));
83 [
'e',
'some string',
true],
96 return $this->createPartialMock(\
Magento\Framework\
App\
Config\Data::class, [$mockedMethod]);
getConfigDataMock($mockedMethod)
testIsSetFlag($configPath, $configValue, $expectedResult)