public testApiFilterConnected_ReturnsMatched ( ) |
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"));
}