Skip to content

Commit 4380ff6

Browse files
authored
fixed disabled guest checkout issue in case of downloadable product
Fix static tests
1 parent 9e9bc69 commit 4380ff6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Downloadable/Test/Unit/Observer/IsAllowedGuestCheckoutObserverTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class IsAllowedGuestCheckoutObserverTest extends TestCase
5858
* Sets up the fixture, for example, open a network connection.
5959
* This method is called before a test is executed.
6060
*/
61-
protected function setUp()
61+
protected function setUp(): void
6262
{
6363
$this->scopeConfig = $this->getMockBuilder(Config::class)
6464
->disableOriginalConstructor()
@@ -99,7 +99,7 @@ protected function setUp()
9999
* @param $productType
100100
* @param $isAllowed
101101
*/
102-
public function testIsAllowedGuestCheckoutConfigSetToTrue($productType, $isAllowed)
102+
public function testIsAllowedGuestCheckoutConfigSetToTrue($productType, $isAllowed): void
103103
{
104104
if ($isAllowed) {
105105
$this->resultMock->expects($this->at(0))
@@ -168,15 +168,15 @@ public function testIsAllowedGuestCheckoutConfigSetToTrue($productType, $isAllow
168168
/**
169169
* @return array
170170
*/
171-
public function dataProviderForTestisAllowedGuestCheckoutConfigSetToTrue()
171+
public function dataProviderForTestisAllowedGuestCheckoutConfigSetToTrue(): array
172172
{
173173
return [
174174
1 => [Type::TYPE_DOWNLOADABLE, true],
175175
2 => ['unknown', false],
176176
];
177177
}
178178

179-
public function testIsAllowedGuestCheckoutConfigSetToFalse()
179+
public function testIsAllowedGuestCheckoutConfigSetToFalse(): void
180180
{
181181
$storeCode = 1;
182182

0 commit comments

Comments
 (0)