Example #1
0
 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());
 }
Example #2
0
 /**
  * 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);
 }