Skip to content

Commit 6edb7ee

Browse files
author
Oleksandr Karpenko
committed
MAGETWO-50767: Cache is not invalidated if reset theme to parent scope on custom website
1 parent 564cfd6 commit 6edb7ee

File tree

1 file changed

+17
-3
lines changed
  • app/code/Magento/Theme/Test/Unit/Model/Design/Backend

1 file changed

+17
-3
lines changed

app/code/Magento/Theme/Test/Unit/Model/Design/Backend/ThemeTest.php

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,24 @@ public function testAfterSave($callNumber, $oldValue)
111111
$this->assertInstanceOf(get_class($this->model), $this->model->afterSave());
112112
}
113113

114-
public function testGetValue()
114+
/**
115+
* @param string|null $value
116+
* @param string $expectedResult
117+
* @return void
118+
* @dataProvider getValueDataProvider
119+
*/
120+
public function testGetValue($value, $expectedResult)
121+
{
122+
$this->model->setValue($value);
123+
$this->assertEquals($expectedResult, $this->model->getValue());
124+
}
125+
126+
public function getValueDataProvider()
115127
{
116-
$this->model->setValue(null);
117-
$this->assertEquals('', $this->model->getValue());
128+
return [
129+
[null, ''],
130+
['value', 'value']
131+
];
118132
}
119133

120134
public function afterSaveDataProvider()

0 commit comments

Comments
 (0)