public function testListsChannelsCorrectly()
 {
     $package = (object) [];
     $this->command->run($this->connection, $package);
     $json = json_decode($this->packages[0]);
     $this->assertEquals(['my-channel', 'my-other-channel'], $json->channels);
 }
 public function testChannelIsRemovedWhenEmpty()
 {
     $package = (object) ['channel' => 'my-channel'];
     $this->command->run($this->connection, $package);
     $this->assertFalse($this->channels->exists('my-channel'));
 }
 public function testJoinsChannelCorrectly()
 {
     $package = (object) ['channel' => 'my-channel'];
     $this->command->run($this->connection, $package);
     $this->assertTrue($this->channels->get('my-channel')->connectionExists($this->connection));
 }