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

testApiInput_ReturnsRouterInputBus() public method

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