public function testDefaultSiteAccess() { $this->dispatcher->expects($this->once())->method('dispatch'); $input = new ArrayInput(array(), $this->inputDefinition); $event = new ConsoleCommandEvent($this->command, $input, $this->testOutput); $this->listener->onConsoleCommand($event); $this->assertEquals(new SiteAccess('default', 'cli'), $this->siteAccess); }