X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FDatabase%2FUpdateComplexTest.php;h=69d5d5d3884eb2ed2216efdb08ff97ff2a66a94c;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=3920826de9fd263a0d8f820ab73f396f254a8866;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php b/web/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php index 3920826de..69d5d5d38 100644 --- a/web/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php +++ b/web/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php @@ -2,6 +2,8 @@ namespace Drupal\KernelTests\Core\Database; +use Drupal\Core\Database\Query\Condition; + /** * Tests the Update query builder, complex queries. * @@ -15,7 +17,7 @@ class UpdateComplexTest extends DatabaseTestBase { public function testOrConditionUpdate() { $update = db_update('test') ->fields(['job' => 'Musician']) - ->condition(db_or() + ->condition((new Condition('OR')) ->condition('name', 'John') ->condition('name', 'Paul') );