/** * Test * * @return void */ public function testGetDocumentList() { $data = array('message' => 'test', 'username' => 'test', 'email' => '*****@*****.**'); $this->object->add($data, $this->document->getId()); $this->assertInternalType('array', $this->object->getDocumentList()); }
/** * Index action, list all documents with comments * * @return array */ public function indexAction() { $model = new Model\Comment(); $documentList = $model->getDocumentList(); return array('document_list' => $documentList); }