示例#1
0
 /**
  * @covers \Ilios\CoreBundle\Entity\Session::getSchool
  */
 public function testGetSchool()
 {
     $school = new School();
     $course = new Course();
     $session = new Session();
     $course->setSchool($school);
     $session->setCourse($course);
     $this->assertSame($school, $session->getSchool());
     $course = new Course();
     $session = new Session();
     $session->setCourse($course);
     $this->assertNull($session->getSchool());
     $session = new Session();
     $this->assertNull($session->getSchool());
 }