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