/** * @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(); }
public function testReturnsSystemChannelByDefault() { $instance = new DummyCanPush(); $this->assertSame(pusher_system_channel(), $instance->getPushableChannel()); }