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

testProtectedApiCreateMessageProtocol_OverwritesNotSetFields() public method

    public function testProtectedApiCreateMessageProtocol_OverwritesNotSetFields()
    {
        $channel = $this->createChannel();
        $message = new Protocol();
        $result = $this->callProtectedMethod($channel, 'createMessageProtocol', [$message]);
        $this->assertInstanceOf(Protocol::class, $result);
        $this->assertNotSame('', $result->getPid());
        $this->assertGreaterThan(0, $result->getTimestamp());
    }
ChannelTest