/** * Test if ID is primary key. */ public function testIdIsPrimaryKey() { $unknown_writer = new Writer($this->connection, $this->pool); $this->assertSame('id', $unknown_writer->getPrimaryKey()); $this->assertTrue($unknown_writer->isPrimaryKey('id')); $this->assertFalse($unknown_writer->isPrimaryKey('name')); }