27 $this->detailsMock = $this->getMockBuilder(\
Magento\AsynchronousOperations\Model\Operation\Details::class)
28 ->disableOriginalConstructor()
30 $this->requestMock = $this->getMockBuilder(\
Magento\Framework\
App\RequestInterface::class)
32 $this->block = new \Magento\AsynchronousOperations\Block\Adminhtml\Bulk\Details\RetryButton(
45 $details = [
'failed_retriable' => $failedCount];
46 $uuid =
'some standard uuid string';
47 $this->requestMock->expects($this->once())
51 $this->detailsMock->expects($this->once())
52 ->method(
'getDetails')
56 $this->assertEquals($expectedResult, $this->block->getButtonData());
69 'label' =>
__(
'Retry'),
70 'class' =>
'retry primary',
72 'mage-init' => [
'button' => [
'event' =>
'save']],
73 'form-role' =>
'save',