Esempio n. 1
0
 /**
  * Asserts all original config data equals $data provided.
  *
  * @param array $data
  *   Config data to be checked.
  * @param bool $apply_overrides
  *   Apply any overrides to the original data.
  */
 public function assertOriginalConfigDataEquals($data, $apply_overrides)
 {
     foreach ($data as $key => $value) {
         $config_value = $this->config->getOriginal($key, $apply_overrides);
         $this->assertEquals($value, $config_value);
     }
 }
Esempio n. 2
0
 /**
  * Checks to see if the provided configuration key's value has changed.
  *
  * @param string $key
  *   The configuration key to check if it has changed.
  *
  * @return bool
  */
 public function isChanged($key)
 {
     return $this->config->get($key) !== $this->config->getOriginal($key);
 }