예제 #1
0
 public function testFindConversation()
 {
     $conversation = $this->driver->createConversationModel();
     $conversation->setSubject('Subject');
     $this->driver->persistConversation($conversation);
     $this->driver->flush();
     $fetched = $this->driver->findConversation($conversation->getId());
     $this->assertInstanceOf(get_class($conversation), $fetched);
     $this->assertEquals($conversation->getSubject(), $fetched->getSubject());
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function getConversation($id)
 {
     return $this->driver->findConversation($id);
 }