Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / config / tests / config_test / src / Entity / ConfigTest.php
index 1bd1d8dee9b7b732c70b0522fec3e14d346630b7..ee0e35a2cd6f8041b7ffe85fa9af464f3e304a22 100644 (file)
@@ -117,9 +117,12 @@ class ConfigTest extends ConfigEntityBase implements ConfigTestInterface {
    * {@inheritdoc}
    */
   public function onDependencyRemoval(array $dependencies) {
-    // Record which entities have this method called on.
+    // Record which entities have this method called on and what dependencies
+    // are passed.
     $called = \Drupal::state()->get('config_test.on_dependency_removal_called', []);
-    $called[] = $this->id();
+    $called[$this->id()] = $dependencies;
+    $called[$this->id()]['config'] = array_keys($called[$this->id()]['config']);
+    $called[$this->id()]['content'] = array_keys($called[$this->id()]['content']);
     \Drupal::state()->set('config_test.on_dependency_removal_called', $called);
 
     $changed = parent::onDependencyRemoval($dependencies);