installConfig(['field_test_config']); $field_storage_id = 'field_test_import'; $field_id = "entity_test.entity_test.$field_storage_id"; $field_config_name = "field.field.$field_id"; $active = $this->container->get('config.storage'); $staging = $this->container->get('config.storage.staging'); $this->copyConfig($active, $staging); // Save as files in the staging directory. $field = $active->read($field_config_name); $new_label = 'Test update import field'; $field['label'] = $new_label; $staging->write($field_config_name, $field); // Import the content of the staging directory. $this->configImporter()->import(); // Check that the updated config was correctly imported. $field = FieldConfig::load($field_id); $this->assertEqual($field->getLabel(), $new_label, 'field label updated'); } }