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