Issue #1965836 by EclipseGc: Fixed The Condition Manager Needs the Namespace.
parent
f28861973d
commit
bf06e1836b
|
@ -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:
|
||||
|
|
|
@ -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 @@ class NodeConditionTest extends DrupalUnitTestBase {
|
|||
* 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()));
|
||||
|
|
Loading…
Reference in New Issue