diff --git a/tests/TestCase/Database/QueryTest.php b/tests/TestCase/Database/QueryTest.php index ef212d81fc3..4f74ff32741 100644 --- a/tests/TestCase/Database/QueryTest.php +++ b/tests/TestCase/Database/QueryTest.php @@ -2658,10 +2658,7 @@ public function testDebugInfo() { ->where(['id' => '1']); $expected = [ - 'sql' => $query->sql(), - 'params' => [ - ':c0' => ['value' => '1', 'type' => 'integer', 'placeholder' => 'c0'] - ], + 'params' => [], 'defaultTypes' => ['id' => 'integer'], 'decorators' => 0, 'executed' => false @@ -2671,7 +2668,6 @@ public function testDebugInfo() { $query->execute(); $expected = [ - 'sql' => $query->sql(), 'params' => [ ':c0' => ['value' => '1', 'type' => 'integer', 'placeholder' => 'c0'] ], @@ -2680,6 +2676,7 @@ public function testDebugInfo() { 'executed' => true ]; $result = $query->__debugInfo(); + $this->assertEquals($result, $expected); } /** diff --git a/tests/TestCase/ORM/QueryTest.php b/tests/TestCase/ORM/QueryTest.php index c4b823bfc63..6461cc76a09 100644 --- a/tests/TestCase/ORM/QueryTest.php +++ b/tests/TestCase/ORM/QueryTest.php @@ -1835,7 +1835,6 @@ public function testDebugInfo() { }); $expected = [ - 'sql' => $query->sql(), 'params' => $query->valueBinder()->bindings(), 'defaultTypes' => [ 'authors.id' => 'integer',