Commit 4999a093 authored by catch's avatar catch

Issue #3108287 by Beakerboy, daffie: Remove, or mark as core only: testPrimaryKeyUpdate()

(cherry picked from commit 748111e3)
parent 37c653f3
......@@ -127,20 +127,6 @@ public function testUpdateAffectedRows() {
$this->assertIdentical($num_rows, 5, 'Correctly returned 5 affected rows.');
}
/**
* Confirm that we can update the primary key of a record successfully.
*/
public function testPrimaryKeyUpdate() {
$num_updated = $this->connection->update('test')
->fields(['id' => 42, 'name' => 'John'])
->condition('id', 1)
->execute();
$this->assertIdentical($num_updated, 1, 'Updated 1 record.');
$saved_name = $this->connection->query('SELECT name FROM {test} WHERE id = :id', [':id' => 42])->fetchField();
$this->assertIdentical($saved_name, 'John', 'Updated primary key successfully.');
}
/**
* Confirm that we can update values in a column with special name.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment