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