From f4b1006f6e0ae07eac65e39705290c136c2ca8e9 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 9 Oct 2024 15:02:24 +1300 Subject: [PATCH] MNT fix unit test --- tests/php/Store/SessionStoreTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/php/Store/SessionStoreTest.php b/tests/php/Store/SessionStoreTest.php index af54558..443df17 100644 --- a/tests/php/Store/SessionStoreTest.php +++ b/tests/php/Store/SessionStoreTest.php @@ -91,7 +91,7 @@ public function preparedQuery($sql, $parameters, $errorLevel = E_USER_ERROR) $this->preparedQueryNum++; } }; - DB::set_conn($mock); + DB::set_conn($mock, DB::CONN_PRIMARY); // Replicate the deserialisation that happens on session start $store->__unserialize($serialised); @@ -100,6 +100,6 @@ public function preparedQuery($sql, $parameters, $errorLevel = E_USER_ERROR) $this->assertSame(0, $mock->preparedQueryNum); // Finish the test and allow mock assertions to fail the test - DB::set_conn($connection); + DB::set_conn($connection, DB::CONN_PRIMARY); } }