Pages addon

Event needed for Page addon
Just change what you have:
```php
		// Load/Mock classes required by the controller class
		$db = $this->new_dbal();
		$this->auth = $this->getMock('\phpbb\auth\auth');
		$this->container = $this->getMock('\Symfony\Component\DependencyInjection\ContainerInterface');
		$this->container->expects($this->any())
			->method('get')
			->with('phpbb.pages.entity')
			->will($this->returnCallback(function() use ($db) {
				return new \phpbb\pages\entity\page($db, 'phpbb_pages');
			}))
		;
		// // Global vars called upon during execution
		$cache = new \phpbb_mock_cache();
		$phpbb_dispatcher = new \phpbb_mock_event_dispatcher();
		$user = $this->getMock('\phpbb\user', array(), array('\phpbb\datetime'));

		$this->template = new \phpbb\pages\tests\mock\template();
		$this->user = new \phpbb\user('\phpbb\datetime');
		$this->controller_helper = new \phpbb\pages\tests\mock\controller_helper();

```
to this:
```php
		// Load/Mock classes required by the controller class
		$db = $this->new_dbal();
		$phpbb_dispatcher = $this->dispatcher = new \phpbb_mock_event_dispatcher();
		$this->auth = $this->getMock('\phpbb\auth\auth');
		$this->container = $this->getMock('\Symfony\Component\DependencyInjection\ContainerInterface');
		$this->container->expects($this->any())
			->method('get')
			->with('phpbb.pages.entity')
			->will($this->returnCallback(function() use ($db) {
				return new \phpbb\pages\entity\page($db, $this->dispatcher, 'phpbb_pages');
			}))
		;
		$this->template = new \phpbb\pages\tests\mock\template();
		$this->user = new \phpbb\user('\phpbb\datetime');
		$this->controller_helper = new \phpbb\pages\tests\mock\controller_helper();

		// Global vars called upon during execution
		$cache = new \phpbb_mock_cache();
		$user = $this->getMock('\phpbb\user', array(), array('\phpbb\datetime'));
```