28 $this->validationRules = $this->getMockBuilder(
29 \
Magento\Customer\Ui\Component\Listing\Column\ValidationRules::class
30 )->disableOriginalConstructor()->getMock();
32 $this->validationRule = $this->getMockBuilder(\
Magento\Customer\Api\Data\ValidationRuleInterface::class)
33 ->disableOriginalConstructor()
36 $this->column = $this->getMockBuilder(\
Magento\Framework\View\Element\UiComponentInterface::class)
37 ->disableOriginalConstructor()
45 $this->column->expects($this->once())
46 ->method(
'getConfiguration')
50 $this->validationRules->expects($this->once())
51 ->method(
'getValidationRules')
52 ->with(
true, [$this->validationRule])
54 'validate-email' =>
true,
55 'required-entry' =>
true 57 $this->column->expects($this->once())
64 'editorType' =>
'text',
66 'validate-email' =>
true,
67 'required-entry' =>
true,
73 $this->component->applyEditing($this->column,
'text', [$this->validationRule],
true);