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

testApiPushRequest_HandlesSendAsyncOnEachName() public method

    public function testApiPushRequest_HandlesSendAsyncOnEachName()
    {
        $names = ['name1', 'name2'];
        $message = 'message';
        $flags = 'flags';
        $channel = $this->createChannel(['createMessageProtocol', 'handlePushRequest']);
        $channel->expects($this->once())->method('createMessageProtocol')->will($this->returnArgument(0));
        $channel->expects($this->twice())->method('handlePushRequest')->will($this->returnValue(true));
        $channel->pushRequest($names, $message, $flags);
    }
ChannelTest