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

testApiOutput_ReturnsRouterOutputBus() public method

    public function testApiOutput_ReturnsRouterOutputBus()
    {
        $channel = $this->createChannel();
        $output = $this->getMock(Router::class, [], [], '', false);
        $router = $this->createRouter(['getBus']);
        $router->expects($this->once())->method('getBus')->with('output')->will($this->returnValue($output));
        $this->assertSame($output, $channel->getOutput());
    }
ChannelTest