function FormStateDecoratorBaseTest::testIsBypassingProgrammedAccessChecks
Tests is bypassing programmed access checks.
@legacy-covers ::isBypassingProgrammedAccessChecks
Attributes
#[DataProvider('providerSingleBooleanArgument')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateDecoratorBaseTest.php, line 512
Class
Namespace
Drupal\Tests\Core\FormCode
public function testIsBypassingProgrammedAccessChecks($programmed_bypass_access_check) : void {
$this->decoratedFormState
->isBypassingProgrammedAccessChecks()
->willReturn($programmed_bypass_access_check)
->shouldBeCalled();
$this->assertSame($programmed_bypass_access_check, $this->formStateDecoratorBase
->isBypassingProgrammedAccessChecks());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.