function MergeTest::testMergeToString

@covers \Drupal\Core\Database\Query\Merge::__toString

File

core/tests/Drupal/KernelTests/Core/Database/MergeTest.php, line 230

Class

MergeTest
Tests the MERGE query builder.

Namespace

Drupal\KernelTests\Core\Database

Code

public function testMergeToString() : void {
    $this->expectException(\BadMethodCallException::class);
    $this->expectExceptionMessage('The merge query can not be converted to a string');
    (string) $this->connection
        ->merge('test_people');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.