From 82a3b71a514fb69ec6c0e4e3ad75487cf9659d88 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Wed, 29 Jan 2025 13:24:12 +0100 Subject: Fix broken DbaPdo test on postgresql --- tests/unit/includes/dba/DbaPdoTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/includes/dba/DbaPdoTest.php b/tests/unit/includes/dba/DbaPdoTest.php index 5d85a1604..8a1a2b197 100644 --- a/tests/unit/includes/dba/DbaPdoTest.php +++ b/tests/unit/includes/dba/DbaPdoTest.php @@ -95,7 +95,7 @@ class DbaPdoTest extends UnitTestCase public function testUpdateRow(): void { // Let's fetch a row from the config table - $res = q('SELECT * FROM config WHERE cat = "system" AND k = "baseurl"'); + $res = q("SELECT * FROM config WHERE cat = 'system' AND k = 'baseurl'"); $this->assertIsArray($res); $this->assertIsArray($res[0]); @@ -113,7 +113,7 @@ class DbaPdoTest extends UnitTestCase $this->assertTrue($updated); // Verify that the record was updated - $updated_res = q('SELECT * FROM config WHERE cat = "system" AND k = "baseurl"'); + $updated_res = q("SELECT * FROM config WHERE cat = 'system' AND k = 'baseurl'"); $this->assertIsArray($updated_res); $updated_row = $updated_res[0]; -- cgit v1.2.3