예제 #1
0
 /**
  * @return void
  */
 public function testExecute()
 {
     $this->abstractBlockMock
         ->expects($this->once())
         ->method('getExcelFile')
         ->willReturn(['export']);
     $this->layoutMock
         ->expects($this->once())
         ->method('getChildBlock')
         ->with('adminhtml.report.grid', 'grid.export');
     $this->fileFactoryMock
         ->expects($this->once())
         ->method('create')
         ->with('customers_orders.xml', ['export'], \Magento\Framework\App\Filesystem\DirectoryList::VAR_DIR);
     $this->exportOrdersExcel->executeInternal();
 }