Skip to content

Commit

Permalink
FIX Specify primary DB connection
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Sep 26, 2024
1 parent 9373bc7 commit a3a07a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/php/Store/SessionStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ public function testDatabaseIsNotAccessedOnDeserialise()

$database->expects($this->never())->method('query');
$database->expects($this->never())->method('preparedQuery');
DB::set_conn($database);
DB::set_conn($database, DB::CONN_PRIMARY);

// Replicate the deserialisation that happens on session start
$store->__unserialize($serialised);

// Finish the test and allow mock assertions to fail the test
DB::set_conn($connection);
DB::set_conn($connection, DB::CONN_PRIMARY);
}
}

0 comments on commit a3a07a7

Please sign in to comment.