Skip to content

Commit 951605d

Browse files
committed
MAGETWO-66424: Is Allowed Guest Checkout #7464
- fixed unit tests
1 parent b029a3c commit 951605d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,8 @@ protected function setUp()
9191
*/
9292
public function testIsAllowedGuestCheckoutConfigSetToTrue($productType, $isAllowed)
9393
{
94-
$this->resultMock->expects($this->at(0))
95-
->method('setIsAllowed')
96-
->with(true);
97-
9894
if ($isAllowed) {
99-
$this->resultMock->expects($this->at(1))
95+
$this->resultMock->expects($this->at(0))
10096
->method('setIsAllowed')
10197
->with(false);
10298
}
@@ -172,10 +168,6 @@ public function dataProviderForTestisAllowedGuestCheckoutConfigSetToTrue()
172168

173169
public function testIsAllowedGuestCheckoutConfigSetToFalse()
174170
{
175-
$this->resultMock->expects($this->once())
176-
->method('setIsAllowed')
177-
->with(true);
178-
179171
$this->eventMock->expects($this->once())
180172
->method('getStore')
181173
->will($this->returnValue($this->storeMock));

0 commit comments

Comments
 (0)