Skip to content

Commit 339c6f8

Browse files
committed
small CR fixes, void return type was added
1 parent ef60786 commit 339c6f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/LayeredNavigation/Test/Unit/Observer/Edit/Tab/Front/ProductAttributeFormBuildFrontTabObserverTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ProductAttributeFormBuildFrontTabObserverTest extends TestCase
4646
/**
4747
* @inheritDoc
4848
*/
49-
protected function setUp()
49+
protected function setUp(): void
5050
{
5151
$this->optionListLock = $this->createMock(Yesno::class);
5252
$this->moduleManagerMock = $this->createMock(Manager::class);
@@ -68,7 +68,7 @@ protected function setUp()
6868
/**
6969
* Test case when module output is disabled
7070
*/
71-
public function testExecuteWhenOutputDisabled()
71+
public function testExecuteWhenOutputDisabled(): void
7272
{
7373
$this->moduleManagerMock->expects($this->once())
7474
->method('isOutputEnabled')
@@ -83,15 +83,15 @@ public function testExecuteWhenOutputDisabled()
8383
/**
8484
* Test case when module output is enabled
8585
*/
86-
public function testExecuteWhenOutputEnabled()
86+
public function testExecuteWhenOutputEnabled(): void
8787
{
8888
$this->moduleManagerMock->expects($this->once())
8989
->method('isOutputEnabled')
9090
->with('Magento_LayeredNavigation')
9191
->willReturn(true);
9292

9393
$fieldsetMock = $this->createMock(Fieldset::class);
94-
$fieldsetMock->expects(self::exactly(3))->method('addField');
94+
$fieldsetMock->expects($this->exactly(3))->method('addField');
9595
$formMock = $this->createMock(Form::class);
9696
$formMock->expects($this->once())
9797
->method('getElement')

0 commit comments

Comments
 (0)