/**
  * @covers ::setCached
  *
  * @dataProvider providerSingleBooleanArgument
  *
  * @param bool $cache
  *
  * @expectedException \LogicException
  */
 public function testSetCachedWithLogicException($cache)
 {
     $this->decoratedFormState->setCached($cache)->willThrow(\LogicException::class);
     $this->assertSame($this->formStateDecoratorBase, $this->formStateDecoratorBase->setCached($cache));
 }