示例#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());
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->actionSet = new ActionSet([], '', [], $this->expressionManager->reveal());
 }
示例#3
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->and = new RulesAnd([], '', [], $this->expressionManager->reveal());
 }
示例#4
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->or = new RulesOr([], '', [], $this->expressionManager->reveal(), new Php());
 }