コード例 #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
ファイル: Repository.php プロジェクト: MHaendel/FOSMessage
 /**
  * {@inheritdoc}
  */
 public function getConversation($id)
 {
     return $this->driver->findConversation($id);
 }