Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->expressionManager = $this->prophesize(ExpressionManagerInterface::class);
     $this->conditions = new RulesAnd([], 'rules_and', [], $this->expressionManager->reveal());
     $this->expressionManager->createInstance('rules_and', [])->willReturn($this->conditions);
     $this->actions = new ActionSet([], 'rules_action_set', [], $this->expressionManager->reveal());
     $this->expressionManager->createInstance('rules_action_set', [])->willReturn($this->actions);
     $this->rule = new Rule([], 'rules_rule', [], $this->expressionManager->reveal());
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->actionSet = new ActionSet([], '', [], $this->expressionManager->reveal());
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->and = new RulesAnd([], '', [], $this->expressionManager->reveal());
 }
Ejemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->or = new RulesOr([], '', [], $this->expressionManager->reveal(), new Php());
 }