That was going to be a test to mimic the issue I had with eventManager() in
a constructor, and then having that class mocked.

I'll get rid of it and rebase.

On Saturday, May 31, 2014, Mark Story <notifications@github.com> wrote:

> In tests/TestCase/Event/EventManagerTraitTest.php:
>
> > + */
> > +	public function testSettingEventManager() {
> > +		$eventManager = new EventManager();
> > +
> > +		$this->subject->eventManager($eventManager);
> > +
> > +		$this->assertSame($eventManager, $this->subject->eventManager());
> > +	}
> > +/**
> > + * testConditionalSetting
> > + *
> > + * @return void
> > + */
> > +	public function testConditionalSetting() {
> > +		$eventManager = null;
> > +		$this->subject->eventManager($eventManager ?: new EventManager());
>
> The ternary is not required here.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/cakephp/cakephp/pull/3601/files#r13255398>.
>