Kraken\_Unit\Channel\ChannelTest::testApiPushAsync_ReturnsEmptyArray_WhenNoneNameSet PHP Method

testApiPushAsync_ReturnsEmptyArray_WhenNoneNameSet() public method

    public function testApiPushAsync_ReturnsEmptyArray_WhenNoneNameSet()
    {
        $names = [];
        $message = 'message';
        $channel = $this->createChannel(['createMessageProtocol', 'handlePushAsync']);
        $channel->expects($this->once())->method('createMessageProtocol')->will($this->returnArgument(0));
        $channel->expects($this->never())->method('handlePushAsync');
        $result = $channel->pushAsync($names, $message);
        $this->assertSame([], $result);
    }
ChannelTest