Skip to content

Commit

Permalink
Fix test assertion and slight cleanup refactoring
Browse files Browse the repository at this point in the history
* Fix test assertion in View\Layout\Reader\UiComponentTest
* Refactor so the test name matches the changes in the code
  • Loading branch information
Vinai committed Jan 8, 2015
1 parent e4b6347 commit 618eea3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ public function testGetSupportedNodes()
*
* @param \Magento\Framework\View\Layout\Element $element
*
* @dataProvider processDataProvider
* @dataProvider interpretDataProvider
*/
public function testProcess($element)
public function testInterpret($element)
{
$scope = $this->getMock('Magento\Framework\App\ScopeInterface', [], [], '', false);
$this->scopeResolver->expects($this->any())->method('getScope')->will($this->returnValue($scope));
Expand All @@ -84,14 +84,14 @@ public function testProcess($element)
$element->getParent()
)->willReturn($element->getAttribute('name'));

$this->helper->expects($this->any())->method('setStructureElementData')->with(
$scheduleStructure->expects($this->once())->method('setStructureElementData')->with(
$element->getAttribute('name'),
['attributes' => ['group' => '', 'component' => 'listing']]
);
$this->model->interpret($this->context, $element);
}

public function processDataProvider()
public function interpretDataProvider()
{
return [
[
Expand Down

0 comments on commit 618eea3

Please sign in to comment.