public function testPoll() { $this->_question->setPoll($this->_mockContainer->getPoll(2)); $poll = $this->_question->getPoll(); $this->assertEquals(2, $poll->getId()); }