_query = new Solarium_Query_Analysis_Document; } public function testGetType() { $this->assertEquals(Solarium_Client::QUERYTYPE_ANALYSIS_DOCUMENT, $this->_query->getType()); } public function testAddAndGetDocument() { $doc = new Solarium_Document_ReadWrite(array('id' => 1)); $this->_query->addDocument($doc); $this->assertEquals( array($doc), $this->_query->getDocuments() ); } public function testAddAndGetDocuments() { $doc1 = new Solarium_Document_ReadWrite(array('id' => 1)); $doc2 = new Solarium_Document_ReadWrite(array('id' => 2)); $this->_query->addDocuments(array($doc1, $doc2)); $this->assertEquals( array($doc1, $doc2), $this->_query->getDocuments() ); } }