From bf06e1836be59db36dace8078b690e9d91ffda38 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Wed, 10 Apr 2013 16:44:26 +0100
Subject: [PATCH] Issue #1965836 by EclipseGc: Fixed The Condition Manager
 Needs the Namespace.

---
 core/core.services.yml                                         | 1 +
 .../node/lib/Drupal/node/Tests/Condition/NodeConditionTest.php | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/core.services.yml b/core/core.services.yml
index c73db7f11d79..bb4b1bcede8d 100644
--- a/core/core.services.yml
+++ b/core/core.services.yml
@@ -353,6 +353,7 @@ services:
     arguments: ['@database']
   plugin.manager.condition:
     class: Drupal\Core\Condition\ConditionManager
+    arguments: ['%container.namespaces%']
   kernel_destruct_subscriber:
     class: Drupal\Core\EventSubscriber\KernelDestructionSubscriber
     tags:
diff --git a/core/modules/node/lib/Drupal/node/Tests/Condition/NodeConditionTest.php b/core/modules/node/lib/Drupal/node/Tests/Condition/NodeConditionTest.php
index a8058f780617..b1863213fffc 100644
--- a/core/modules/node/lib/Drupal/node/Tests/Condition/NodeConditionTest.php
+++ b/core/modules/node/lib/Drupal/node/Tests/Condition/NodeConditionTest.php
@@ -8,7 +8,6 @@
 namespace Drupal\node\Tests\Condition;
 
 use Drupal\simpletest\DrupalUnitTestBase;
-use Drupal\Core\Condition\ConditionManager;
 
 /**
  * Tests the node conditions.
@@ -38,7 +37,7 @@ protected function setUp() {
    * Tests conditions.
    */
   function testConditions() {
-    $manager = new ConditionManager($this->container->getParameter('container.namespaces'));
+    $manager = $this->container->get('plugin.manager.condition');
 
     // Get some nodes of various types to check against.
     $page = entity_create('node', array('type' => 'page', 'title' => $this->randomName()));
-- 
GitLab