コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
 /**
  * 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();
 }