Example #1
0
 /**
  * @covers \Ilios\CoreBundle\Entity\Session::setSessionDescription
  * @covers \Ilios\CoreBundle\Entity\Session::getSessionDescription
  */
 public function testSetSessionDescription()
 {
     $this->assertTrue(method_exists($this->object, 'getSessionDescription'), "Method missing");
     $this->assertTrue(method_exists($this->object, 'setSessionDescription'), "Method missing");
     $obj = m::mock('Ilios\\CoreBundle\\Entity\\SessionDescription');
     $obj->shouldReceive('setSession')->with($this->object)->once();
     $this->object->setSessionDescription($obj);
     $this->assertSame($obj, $this->object->getSessionDescription());
 }