File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
app/code/Magento/Downloadable/Test/Unit/Observer Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -91,12 +91,8 @@ protected function setUp()
91
91
*/
92
92
public function testIsAllowedGuestCheckoutConfigSetToTrue ($ productType , $ isAllowed )
93
93
{
94
- $ this ->resultMock ->expects ($ this ->at (0 ))
95
- ->method ('setIsAllowed ' )
96
- ->with (true );
97
-
98
94
if ($ isAllowed ) {
99
- $ this ->resultMock ->expects ($ this ->at (1 ))
95
+ $ this ->resultMock ->expects ($ this ->at (0 ))
100
96
->method ('setIsAllowed ' )
101
97
->with (false );
102
98
}
@@ -172,10 +168,6 @@ public function dataProviderForTestisAllowedGuestCheckoutConfigSetToTrue()
172
168
173
169
public function testIsAllowedGuestCheckoutConfigSetToFalse ()
174
170
{
175
- $ this ->resultMock ->expects ($ this ->once ())
176
- ->method ('setIsAllowed ' )
177
- ->with (true );
178
-
179
171
$ this ->eventMock ->expects ($ this ->once ())
180
172
->method ('getStore ' )
181
173
->will ($ this ->returnValue ($ this ->storeMock ));
You can’t perform that action at this time.
0 commit comments