Skip to content

Commit

Permalink
Merge pull request #569 from creative-commoners/pulls/6/db-replica
Browse files Browse the repository at this point in the history
MNT fix unit test
  • Loading branch information
GuySartorelli authored Oct 10, 2024
2 parents a52ef44 + f4b1006 commit 195d520
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 @@ -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);
Expand All @@ -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);
}
}

0 comments on commit 195d520

Please sign in to comment.