Skip to content

Commit 7cd7ade

Browse files
committed
#12695: Unable to change attribute type from swatch to dropdown
- fixed the unit test: testProvide().
1 parent 8fa792a commit 7cd7ade

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/code/Magento/Swatches/Test/Unit/Model/SwatchAttributesProviderTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ public function testProvide()
7474
$this->productMock->method('getTypeId')
7575
->willReturn(Configurable::TYPE_CODE);
7676

77-
$productAttributeMock = $this->getMockBuilder(Attribute::class)
78-
->disableOriginalConstructor()
79-
->getMock();
80-
8177
$attributeMock = $this->getMockBuilder(\Magento\Catalog\Model\ResourceModel\Eav\Attribute::class)
8278
->disableOriginalConstructor()
8379
->setMethods(['setStoreId', 'getData', 'setData', 'getSource', 'hasData'])
@@ -109,6 +105,6 @@ public function testProvide()
109105

110106
$result = $this->swatchAttributeProvider->provide($this->productMock);
111107

112-
$this->assertEquals([1 => $productAttributeMock], $result);
108+
$this->assertEquals([1 => $attributeMock], $result);
113109
}
114110
}

0 commit comments

Comments
 (0)