Example #1
0
 /**
  * @return string
  */
 public function getPushableChannel()
 {
     if (property_exists(get_class($this), 'pushableChannel')) {
         return $this->pushableChannel;
     }
     if ($this instanceof ModelAccountResource) {
         return pusher_account_channel();
     }
     return pusher_system_channel();
 }
Example #2
0
 public function testReturnsSystemChannelByDefault()
 {
     $instance = new DummyCanPush();
     $this->assertSame(pusher_system_channel(), $instance->getPushableChannel());
 }