/** * Tests the primary key methods */ public function testPrimaryKey() { $doc = new ASolrDocument(); $doc->name = "test"; $doc->id = 12; $this->assertEquals("id", $doc->primaryKey()); $this->assertEquals(12, $doc->getPrimaryKey()); }