public function testUrl() { $this->_question->setPoll($this->_mockContainer->getPoll(2)); $this->_question->setId(1); $this->assertEquals('/polls/2/questions/1', $this->_question->getUrl()); }