function FormStateDecoratorBaseTest::testSetCachedWithLogicException
@covers ::setCached
@dataProvider providerSingleBooleanArgument
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateDecoratorBaseTest.php, line 155
Class
- FormStateDecoratorBaseTest
- @coversDefaultClass \Drupal\Core\Form\FormStateDecoratorBase[[api-linebreak]]
Namespace
Drupal\Tests\Core\FormCode
public function testSetCachedWithLogicException($cache) : void {
$this->decoratedFormState
->setCached($cache)
->willThrow(\LogicException::class);
$this->expectException(\LogicException::class);
$this->formStateDecoratorBase
->setCached($cache);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.