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

testApiFilterConnected_ReturnsMatched() public method

    public function testApiFilterConnected_ReturnsMatched()
    {
        $channel = $this->createChannel();
        $model = $this->createModel();
        $conns = ["darkgray", "black", "grayish", "griy", "red", "some kind of gray"];
        $expected = ["darkgray", "some kind of gray"];
        $model->expects($this->once())->method('getConnected')->will($this->returnValue($conns));
        $this->assertSame($expected, $channel->filterConnected("*gr[ae]y"));
    }
ChannelTest