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\NotificationDismissActions::class,
45 'context' => $this->context,
46 'uiComponentFactory' => $this->uiComponentFactory,
48 'data' => [
'name' =>
'actions']
55 $testData[
'data'][
'items'] = [
67 $expectedResult[
'data'][
'items'] = [
77 'label' =>
__(
'Dismiss'),
80 'provider' =>
'ns = notification_area, index = columns',
81 'target' =>
'dismiss',
94 $this->assertEquals($expectedResult, $this->actionColumn->prepareDataSource($testData));
const FINISHED_SUCCESSFULLY