public function testFormatUrlKey() { $strIn = 'Some string'; $resultString = 'some'; $this->filter->expects($this->once())->method('translitUrl')->with($strIn)->will($this->returnValue($resultString)); $this->assertEquals($resultString, $this->model->formatUrlKey($strIn)); }