22 private $uiComponentFactory;
27 private $actionColumn;
34 $this->context = $this->createMock(\
Magento\Framework\View\Element\UiComponent\ContextInterface::class);
35 $this->uiComponentFactory = $this->createMock(\
Magento\Framework\View\Element\UiComponentFactory::class);
37 \
Magento\Framework\View\Element\UiComponent\Processor::class,
40 $this->context->expects($this->never())->method(
'getProcessor')->will($this->returnValue(
$processor));
41 $objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
43 \
Magento\AsynchronousOperations\Ui\Component\Listing\Column\NotificationActions::class,
45 'context' => $this->context,
46 'uiComponentFactory' => $this->uiComponentFactory,
48 'data' => [
'name' =>
'actions']
55 $testData[
'data'][
'items'] = [
67 $expectedResult[
'data'][
'items'] = [
77 'label' =>
__(
'View Details'),
80 'provider' =>
'notification_area.notification_area.modalContainer.modal.insertBulk',
81 'target' =>
'destroyInserted',
84 'provider' =>
'notification_area.notification_area.modalContainer.modal.insertBulk',
85 'target' =>
'updateData',
91 'provider' =>
'notification_area.notification_area.modalContainer.modal',
92 'target' =>
'openModal',
95 'provider' =>
'ns = notification_area, index = columns',
96 'target' =>
'dismiss',
97 'params' => [
'uuid-1'],
108 'label' =>
__(
'View Details'),
111 'provider' =>
'notification_area.notification_area.modalContainer.modal.insertBulk',
112 'target' =>
'destroyInserted',
115 'provider' =>
'notification_area.notification_area.modalContainer.modal.insertBulk',
116 'target' =>
'updateData',
122 'provider' =>
'notification_area.notification_area.modalContainer.modal',
123 'target' =>
'openModal',
130 $this->assertEquals($expectedResult, $this->actionColumn->prepareDataSource($testData));
const FINISHED_SUCCESSFULLY