Skip to content

Commit 7c2d2a6

Browse files
author
nikunj
committed
#21853: Fix tests.
1 parent 6cbf85f commit 7c2d2a6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/internal/Magento/Framework/Mview/Test/Unit/View/SubscriptionTest.php

+1-7
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ public function testCreate()
220220
$this->viewMock->expects($this->exactly(3))
221221
->method('getId')
222222
->willReturn('this_id');
223-
$this->viewMock->expects($this->never())
224-
->method('getSubscriptions');
225223

226224
$this->viewCollectionMock->expects($this->exactly(1))
227225
->method('getViewsByStateMode')
@@ -290,18 +288,14 @@ public function testRemove()
290288
$otherViewMock->expects($this->exactly(1))
291289
->method('getId')
292290
->willReturn('other_id');
293-
$otherViewMock->expects($this->exactly(1))
294-
->method('getSubscriptions')
295-
->willReturn([['name' => $this->tableName], ['name' => 'otherTableName']]);
291+
296292
$otherViewMock->expects($this->exactly(3))
297293
->method('getChangelog')
298294
->willReturn($otherChangelogMock);
299295

300296
$this->viewMock->expects($this->exactly(3))
301297
->method('getId')
302298
->willReturn('this_id');
303-
$this->viewMock->expects($this->never())
304-
->method('getSubscriptions');
305299

306300
$this->viewCollectionMock->expects($this->exactly(1))
307301
->method('getViewsByStateMode')

0 commit comments

Comments
 (0)