Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     // Create a test condition plugin that always evaluates to TRUE.
     $this->trueCondition = $this->prophesize(RulesConditionInterface::class);
     $this->trueCondition->execute()->willReturn(TRUE);
     $this->trueCondition->evaluate()->willReturn(TRUE);
     $this->conditionManager = $this->prophesize(ConditionManager::class);
     $this->processorManager = $this->prophesize(DataProcessorManager::class);
     $this->conditionExpression = new RulesCondition(['condition_id' => 'test_condition'], '', [], $this->conditionManager->reveal(), $this->processorManager->reveal());
 }