Homec4science

Provide connection isolation to Lisk and enable it by default in tests

Authored by epriestley <git@epriestley.com> on Apr 30 2011, 19:11.

Description

Provide connection isolation to Lisk and enable it by default in tests

Summary:
Allow Lisk to be put into process-isolated mode which establishes
only isolated connections. By default, put it into this mode when running
unit tests. Build some simple unit tests around object insertion and
updating.

NOTE: The one flaw in this is that $dao->establishConnection() still punches through the isolation layer. I need to do an API change to fix this though so I'm holding it for now. It will probably just rename getConnection() to establishConnection() and then rename establishConnection() to something scary like establishLiveExternalConnection().

Test Plan:
Ran unit tests.

Reviewed By: aran
Reviewers: aran, tuomaspelkonen, jungejason
CC: aran, epriestley
Differential Revision: 194

Details

Committed
epriestley <git@epriestley.com>May 1 2011, 07:24
Pushed
aubortJan 31 2017, 17:16
Parents
rPH7387cd63acbe: Provide an "isolated" database connection for testing
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH80b75a5f3bdd: Provide connection isolation to Lisk and enable it by default in tests (authored by epriestley <git@epriestley.com>).May 1 2011, 07:24