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()); }
/** * {@inheritdoc} */ public function getConversation($id) { return $this->driver->findConversation($id); }