--- a/core/tests/Drupal/Tests/Core/Config/ImmutableConfigTest.php +++ b/core/tests/Drupal/Tests/Core/Config/ImmutableConfigTest.php @@ -28,13 +28,13 @@ protected function setUp() { $storage = $this->getMock('Drupal\Core\Config\StorageInterface'); $event_dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface'); $typed_config = $this->getMock('Drupal\Core\Config\TypedConfigManagerInterface'); - $this->config = new ImmutableConfig('test', $storage, $event_dispatcher, $typed_config); + $this->config = new ImmutableConfig('test.immutable_config', $storage, $event_dispatcher, $typed_config); } /** * @covers ::set * @expectedException \Drupal\Core\Config\ImmutableConfigException - * @expectedExceptionMessage Can not set values on immutable configuration test:name. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object + * @expectedExceptionMessage Can not set values on immutable configuration test.immutable_config:name. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object */ public function testSet() { $this->config->set('name', 'value'); @@ -43,7 +43,7 @@ public function testSet() { /** * @covers ::clear * @expectedException \Drupal\Core\Config\ImmutableConfigException - * @expectedExceptionMessage Can not clear name key in immutable configuration test. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object + * @expectedExceptionMessage Can not clear name key in immutable configuration test.immutable_config. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object */ public function testClear() { $this->config->clear('name'); @@ -52,7 +52,7 @@ public function testClear() { /** * @covers ::save * @expectedException \Drupal\Core\Config\ImmutableConfigException - * @expectedExceptionMessage Can not save immutable configuration test. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object + * @expectedExceptionMessage Can not save immutable configuration test.immutable_config. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object */ public function testSave() { $this->config->save(); @@ -61,7 +61,7 @@ public function testSave() { /** * @covers ::delete * @expectedException \Drupal\Core\Config\ImmutableConfigException - * @expectedExceptionMessage Can not delete immutable configuration test. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object + * @expectedExceptionMessage Can not delete immutable configuration test.immutable_config. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object */ public function testDelete() { $this->config->delete();