Skip to content

Commit fc916fb

Browse files
committed
Merge pull request #911 from Vinai/view-layout-reader-uicomponent
Fix test assertion and slight cleanup refactoring
2 parents b480553 + 618eea3 commit fc916fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev/tests/unit/testsuite/Magento/Framework/View/Layout/Reader/UiComponentTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ public function testGetSupportedNodes()
6565
*
6666
* @param \Magento\Framework\View\Layout\Element $element
6767
*
68-
* @dataProvider processDataProvider
68+
* @dataProvider interpretDataProvider
6969
*/
70-
public function testProcess($element)
70+
public function testInterpret($element)
7171
{
7272
$scope = $this->getMock('Magento\Framework\App\ScopeInterface', [], [], '', false);
7373
$this->scopeResolver->expects($this->any())->method('getScope')->will($this->returnValue($scope));
@@ -84,14 +84,14 @@ public function testProcess($element)
8484
$element->getParent()
8585
)->willReturn($element->getAttribute('name'));
8686

87-
$this->helper->expects($this->any())->method('setStructureElementData')->with(
87+
$scheduleStructure->expects($this->once())->method('setStructureElementData')->with(
8888
$element->getAttribute('name'),
8989
['attributes' => ['group' => '', 'component' => 'listing']]
9090
);
9191
$this->model->interpret($this->context, $element);
9292
}
9393

94-
public function processDataProvider()
94+
public function interpretDataProvider()
9595
{
9696
return [
9797
[

0 commit comments

Comments
 (0)