23 $this->objectManagerMock = $this->createMock(\
Magento\Framework\ObjectManagerInterface::class);
31 $validators = [\Magento\Catalog\Model\Attribute\Backend\Startdate::class];
32 $this->model = new \Magento\Catalog\Model\Attribute\LockValidatorComposite(
33 $this->objectManagerMock,
40 $validators = [\Magento\Catalog\Model\Attribute\LockValidatorComposite::class];
41 $lockValidatorMock = $this->createMock(\
Magento\Catalog\Model\
Attribute\LockValidatorInterface::class);
42 $this->objectManagerMock->expects(
49 $this->returnValue($lockValidatorMock)
52 $this->model = new \Magento\Catalog\Model\Attribute\LockValidatorComposite(
53 $this->objectManagerMock,
56 $abstractModelHelper = $this->createMock(\
Magento\Catalog\Model\Product::class);
57 $lockValidatorMock->expects($this->once())->method(
'validate')->with($abstractModelHelper);
58 $this->model->validate($abstractModelHelper);
testCompositionsWithInvalidValidatorInstance()
testValidateWithValidValidatorInstance()