Exemplo n.º 1
0
 /**
  * @covers \Ilios\CoreBundle\Entity\Offering::getSchool
  */
 public function testGetSchool()
 {
     $school = new School();
     $course = new Course();
     $course->setSchool($school);
     $session = new Session();
     $session->setCourse($course);
     $offering = new Offering();
     $offering->setSession($session);
     $this->assertSame($school, $offering->getSchool());
     $course = new Course();
     $session = new Session();
     $session->setCourse($course);
     $offering = new Offering();
     $offering->setSession($session);
     $this->assertNull($offering->getSchool());
     $session = new Session();
     $offering = new Offering();
     $offering->setSession($session);
     $this->assertNull($offering->getSchool());
     $offering = new Offering();
     $this->assertNull($offering->getSchool());
 }