/**
  * Tests removeUser() with a channel that does not have mode data.
  */
 public function testRemoveUserWithoutModeData()
 {
     $channel = '#channel1,#channel2';
     $nick = 'nick';
     $mode = 'o';
     $params = array('channels' => $channel);
     $connection = $this->getMockConnection();
     $event = $this->getMockUserEvent();
     Phake::when($event)->getParams()->thenReturn($params);
     Phake::when($event)->getConnection()->thenReturn($connection);
     Phake::when($event)->getNick()->thenReturn($nick);
     $this->plugin->removeUser($event, $this->queue);
     $this->assertFalse($this->plugin->userHasMode($connection, '#channel1', $nick, $mode));
     $this->assertFalse($this->plugin->userHasMode($connection, '#channel2', $nick, $mode));
 }