37 $this->context = $this->getMockBuilder(\
Magento\Backend\
App\Action\Context::class)
38 ->disableOriginalConstructor()
41 $this->converter = $this->getMockBuilder(\
Magento\Ui\Model\Export\ConvertToXml::class)
42 ->disableOriginalConstructor()
45 $this->fileFactory = $this->getMockBuilder(\
Magento\Framework\
App\
Response\Http\FileFactory::class)
46 ->disableOriginalConstructor()
60 $this->converter->expects($this->once())
61 ->method(
'getXmlFile')
64 $this->fileFactory->expects($this->once())
66 ->with(
'export.xml',
$content,
'var')
69 $this->assertEquals(
$content, $this->controller->execute());