Loading core/tests/Drupal/KernelTests/Core/Database/UpdateTest.php +0 −14 Changes for core/tests/Drupal/KernelTests/Core/Database/UpdateTest.php: 0 added lines, 14 removed lines. Original line number Diff line number Diff line Loading @@ -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. */ Loading Loading
core/tests/Drupal/KernelTests/Core/Database/UpdateTest.php +0 −14 Changes for core/tests/Drupal/KernelTests/Core/Database/UpdateTest.php: 0 added lines, 14 removed lines. Original line number Diff line number Diff line Loading @@ -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. */ Loading