Skip to content

Commit f2684ad

Browse files
author
Dmytro Poperechnyy
committed
MAGETWO-43285: If you change page layout on grid, then the node of this page will be removed from hierarchy and Custom Theme will be changed to "Magento Luma"
1 parent 7f80265 commit f2684ad

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

app/code/Magento/Cms/Test/Unit/Controller/Adminhtml/Page/InlineEditTest.php

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,11 @@ public function prepareMocksForTestExecute()
9393
'identifier' => 'no-route'
9494
]
9595
];
96-
97-
$this->request->expects($this->at(1))
98-
->method('getParam')
99-
->with('isAjax')
100-
->willReturn(true);
101-
$this->request->expects($this->at(0))
96+
$this->request->expects($this->any())
10297
->method('getParam')
10398
->willReturnMap(
10499
[
100+
['isAjax', null, true],
105101
['items', [], $postData]
106102
]
107103
);
@@ -217,14 +213,11 @@ public function testExecuteWithoutData()
217213
$this->jsonFactory->expects($this->once())
218214
->method('create')
219215
->willReturn($this->resultJson);
220-
$this->request->expects($this->at(0))
221-
->method('getParam')
222-
->with('items', [])
223-
->willReturn([]);
224-
$this->request->expects($this->at(1))
216+
$this->request->expects($this->any())
225217
->method('getParam')
226218
->willReturnMap(
227219
[
220+
['items', [], []],
228221
['isAjax', null, true]
229222
]
230223
);

0 commit comments

Comments
 (0)