24 $this->validator = $this->createMock(\
Magento\Framework\
Validator\DataObject::class);
30 $this->validator->expects($this->exactly(4))->method(
'addRule')->willReturn($this->validator);
31 $this->assertSame($this->validator, $this->rules->addUserInfoRules($this->validator));
36 $this->validator->expects($this->exactly(3))->method(
'addRule')->willReturn($this->validator);
37 $this->assertSame($this->validator, $this->rules->addPasswordRules($this->validator));
42 $this->validator->expects($this->once())->method(
'addRule')->willReturn($this->validator);
43 $this->assertSame($this->validator, $this->rules->addPasswordConfirmationRule($this->validator,
''));
testAddPasswordConfirmationRule()