/** * @covers Core\Entity\StudentInGroups::setStudentGroup * @covers Core\Entity\StudentInGroups::getStudentGroup */ public function testSetGetStudentGroup() { $mockStudentGroup = $this->getMockBuilder('Core\\Entity\\StudentGroup')->getMock(); $this->studentInGroups->setStudentGroup($mockStudentGroup); $this->assertEquals($mockStudentGroup, $this->studentInGroups->getStudentGroup()); }