Private helper method to set the test block's cache mode.
private function setCacheMode($cache_mode) { $this->block ->getPlugin() ->setConfig('cache', $cache_mode); $this->block ->save(); }