Just include the mock container file. Root path ../tests/mock/
On Feb 10, 2014 12:02 AM, "Matt Friedman" <notifications@github.com> wrote:

> In tests/operators/rule_operator_base.php:
>
> > +		$this->config = new \phpbb\config\config(array('nestedset_rules_lock' => 0));
> > +		set_config(null, null, null, $this->config);
> > +
> > +		$this->lock = new \phpbb\lock\db('nestedset_rules_lock', $this->config, $this->db);
> > +		$this->nestedset_rules = new \phpbb\boardrules\operators\nestedset_rules($this->db, $this->lock, 'phpbb_boardrules');
> > +	}
> > +
> > +	/**
> > +	* Get the rule operator
> > +	*
> > +	* @return \phpbb\boardrules\operators\rule
> > +	* @access protected
> > +	*/
> > +	protected function get_rule_operator()
> > +	{
> > +		return new \phpbb\boardrules\operators\rule($this->container, $this->nestedset_rules, 'phpbb_boardrules');
>
> I tried something like that but got errors about not being able to set a
> frozen container. I guess we need to use the mock container but I don't
> know how to access that.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/phpbb-extensions/boardrules/pull/25/files#r9574812>
> .
>