Skip to content

Commit dd10892

Browse files
committed
ACP2E-3324: fix static and unit test errors
1 parent cd3418c commit dd10892

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/code/Magento/Theme/Test/Unit/Model/Data/Design/ConfigFactoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ public function testCreateInSingleStoreMode()
275275
$this->assertSame($this->designConfig, $this->factory->create($scope, $scopeId, $data));
276276
}
277277

278-
public function testBypassSettingLockedConfig() {
278+
public function testBypassSettingLockedConfig()
279+
{
279280
$scope = 'default';
280281
$scopeId = 0;
281282
$data = [

app/code/Magento/Theme/Test/Unit/Plugin/DesignPathValidatorPluginTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ public function testAroundValidateWithValidPath()
7070
->willReturn([$path => $path]);
7171

7272
$designConfig = $this->createMock(DesignConfigInterface::class);
73-
$extensionAttributes = $this->createMock(DesignConfigExtensionInterface::class);
73+
$extensionAttributes = $this->getMockBuilder(DesignConfigExtensionInterface::class)
74+
->disableOriginalConstructor()
75+
->onlyMethods(['getDesignConfigData', 'setDesignConfigData'])
76+
->getMock();
7477
$designConfig->expects($this->once())
7578
->method('getExtensionAttributes')
7679
->willReturn($extensionAttributes);

0 commit comments

Comments
 (0)