function FormStateDecoratorBaseTest::testUnsetValue

Tests unset value.

@legacy-covers ::unsetValue

File

core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php, line 1278

Class

FormStateDecoratorBaseTest
Tests Drupal\Core\Form\FormStateDecoratorBase.

Namespace

Drupal\Tests\Core\Form

Code

public function testUnsetValue() : void {
  $key = 'FOO';
  $this->decoratedFormState
    ->unsetValue($key)
    ->shouldBeCalled();
  $this->assertSame($this->formStateDecoratorBase, $this->formStateDecoratorBase
    ->unsetValue($key));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.