Skip to content

Commit ac1a159

Browse files
committed
Revert "Added Unit test coverage"
This reverts commit 40a7f2a.
1 parent a617e64 commit ac1a159

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

app/code/Magento/Eav/Test/Unit/Model/Entity/AttributeTest.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
use Magento\Eav\Model\Entity\Attribute\FrontendLabel;
1212
use Magento\Eav\Model\Entity\Attribute\FrontendLabelFactory;
1313
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
14-
use Magento\Store\Api\Data\StoreInterface;
15-
use Magento\Store\Model\StoreManagerInterface;
1614
use PHPUnit\Framework\MockObject\MockObject;
1715
use PHPUnit\Framework\TestCase;
1816

@@ -43,28 +41,6 @@ protected function tearDown(): void
4341
$this->_model = null;
4442
}
4543

46-
/**
47-
* @return void
48-
*/
49-
public function testGetStoreLabel()
50-
{
51-
$objectManager = new ObjectManager($this);
52-
$storeMock = $this->createMock(StoreInterface::class);
53-
$storeManagerMock = $this->createMock(StoreManagerInterface::class);
54-
$storeManagerMock->method('getStore')->willReturn($storeMock);
55-
$resource = $this->getMockBuilder(\Magento\Eav\Model\ResourceModel\Entity\Attribute::class)
56-
->setMethods(['getStoreLabelsByAttributeId'])
57-
->disableOriginalConstructor()
58-
->getMock();
59-
$arguments = [
60-
'_resource' => $resource,
61-
'storeManager' => $storeManagerMock,
62-
];
63-
$this->_model = $objectManager->getObject(Attribute::class, $arguments);
64-
65-
$this->assertEmpty($this->_model->getStoreLabel());
66-
}
67-
6844
/**
6945
* @param string $givenFrontendInput
7046
* @param string $expectedBackendType

0 commit comments

Comments
 (0)