public function testBody() { $body = "foo"; $ct = "bar"; $update = new Update(); $update->body($body)->contentType($ct); $this->assertSame($body, $update->getBody()); $this->assertSame($ct, $update->getContentType()); }
/** * Commits the data in the core. * * This will make all data which was sent previously, but not commited, * available for search. * * @return array Decoded response from the Solr server. */ public function commit() { $update = new Update(); $update->commit(); return $this->update($update); }