public function testSetValuesSafeCanSetPrimaryKey() { //blacklist doesn't contain 'id', so id should be allowed $details = new BookDetails($this->conn); $details->setValuesSafe(['id' => 20, 'books_id' => 40, 'synopsis' => 'foo']); $this->assertSame(['id' => 20, 'synopsis' => 'foo'], $details->getValues()); }