protected function DevelSwitchUserTest::setBlockConfiguration in Devel 8.2
Same name and namespace in other branches
- 8.3 tests/src/Functional/DevelSwitchUserTest.php \Drupal\Tests\devel\Functional\DevelSwitchUserTest::setBlockConfiguration()
- 8 tests/src/Functional/DevelSwitchUserTest.php \Drupal\Tests\devel\Functional\DevelSwitchUserTest::setBlockConfiguration()
- 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 268
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();
}