function DevelSwitchUserTest::setBlockConfiguration
Same name in other branches
- 4.x tests/src/Functional/DevelSwitchUserTest.php \Drupal\Tests\devel\Functional\DevelSwitchUserTest::setBlockConfiguration()
Protected helper method to set the test block's configuration.
2 calls to DevelSwitchUserTest::setBlockConfiguration()
- DevelSwitchUserTest::testSwitchUserBlockConfiguration in tests/
src/ Functional/ DevelSwitchUserTest.php - Tests the switch user block configuration.
- DevelSwitchUserTest::testSwitchUserListItems in tests/
src/ Functional/ DevelSwitchUserTest.php - Test the user list items.
File
-
tests/
src/ Functional/ DevelSwitchUserTest.php, line 274
Class
- DevelSwitchUserTest
- Tests switch user.
Namespace
Drupal\Tests\devel\FunctionalCode
protected function setBlockConfiguration($key, $value) {
$block = $this->block
->getPlugin();
$block->setConfigurationValue($key, $value);
$this->block
->save();
}