FIX: In Ember CLI some plugin tests were referring to the wrong container

FIX: In Ember CLI some plugin tests were referring to the wrong container

diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.js b/app/assets/javascripts/discourse/app/lib/plugin-api.js
index 4776756..d7ded31 100644
--- a/app/assets/javascripts/discourse/app/lib/plugin-api.js
+++ b/app/assets/javascripts/discourse/app/lib/plugin-api.js
@@ -1564,6 +1564,9 @@ function getPluginApi(version) {
       owner.registry.register("plugin-api:main", pluginApi, {
         instantiate: false,
       });
+    } else {
+      // If we are re-using an instance, make sure the container is correct
+      pluginApi.container = owner;
     }
 
     // We are recycling the compatible object, but let's update to the higher version

GitHub sha: 769d53ff09727ed4e6402a365f230193a0708ca8

This commit appears in #14860 which was merged by eviltrout.