$this->decoratedFormState->
setError($element,
$message) ->
shouldBeCalled();
$this->
assertSame($this->formStateDecoratorBase,
$this->formStateDecoratorBase->
setError($element,
$message));
} /**
* @covers ::clearErrors
*/
public function testClearErrors() { $this->decoratedFormState->
clearErrors() ->
shouldBeCalled();
$this->formStateDecoratorBase->
clearErrors();
} /**
* @covers ::getError
*/
public function testGetError() { $element =
[ '#foo' => 'bar',
];