/** * Private helper method to set the test block's cache configuration. */ private function setBlockCacheConfig($cache_config) { $block = $this->block->getPlugin(); $block->setConfigurationValue('cache', $cache_config); $this->block->save(); }
/** * Protected helper method to set the test block's configuration. */ protected function setBlockConfiguration($key, $value) { $block = $this->block->getPlugin(); $block->setConfigurationValue($key, $value); $this->block->save(); }