public function testRender()
 {
     $rule = $this->getMock('\\Magento\\Rule\\Model\\Rule', ['getActions', '__sleep', '__wakeup'], [], '', false);
     $actions = $this->getMock('\\Magento\\Rule\\Model\\Action\\Collection', ['asHtmlRecursive'], [], '', false);
     $this->_element->expects($this->any())->method('getRule')->will($this->returnValue($rule));
     $rule->expects($this->any())->method('getActions')->will($this->returnValue($actions));
     $actions->expects($this->once())->method('asHtmlRecursive')->will($this->returnValue('action html'));
     $this->assertEquals('action html', $this->actions->render($this->_element));
 }
 public function testRender()
 {
     $rule = $this->getMockBuilder('Magento\\Rule\\Model\\AbstractModel')->setMethods(['getActions', '__sleep', '__wakeup'])->disableOriginalConstructor()->getMockForAbstractClass();
     $actions = $this->getMock('\\Magento\\Rule\\Model\\Action\\Collection', ['asHtmlRecursive'], [], '', false);
     $this->_element->expects($this->any())->method('getRule')->will($this->returnValue($rule));
     $rule->expects($this->any())->method('getActions')->will($this->returnValue($actions));
     $actions->expects($this->once())->method('asHtmlRecursive')->will($this->returnValue('action html'));
     $this->assertEquals('action html', $this->actions->render($this->_element));
 }