comparison core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
414 * @return bool 414 * @return bool
415 * TRUE if the assertion succeeded, FALSE otherwise. 415 * TRUE if the assertion succeeded, FALSE otherwise.
416 */ 416 */
417 protected function assertActiveConfig($config_name, $key, $value, $langcode) { 417 protected function assertActiveConfig($config_name, $key, $value, $langcode) {
418 $config = $this->configFactory->getEditable($config_name); 418 $config = $this->configFactory->getEditable($config_name);
419 return 419 return $this->assertEqual($config->get('langcode'), $langcode) &&
420 $this->assertEqual($config->get('langcode'), $langcode) &&
421 $this->assertIdentical($config->get($key), $value); 420 $this->assertIdentical($config->get($key), $value);
422 } 421 }
423 422
424 /** 423 /**
425 * Ensures no translation exists. 424 * Ensures no translation exists.