public function setUp()
{
parent::setUp();
$this->siteAccess = new SiteAccess();
$this->dispatcher = $this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
$this->listener = new ConsoleCommandListener('default', $this->siteAccessList, $this->dispatcher);
$this->listener->setSiteAccess($this->siteAccess);
$this->dispatcher->addSubscriber($this->listener);
$this->command = new Command('test:siteaccess');
$this->inputDefinition = new InputDefinition(array(new InputOption('siteaccess', null, InputOption::VALUE_OPTIONAL)));
$this->testOutput = new TestOutput(Output::VERBOSITY_QUIET, true);
}