RFI: Explicit database naming in test suite w/ multisite
samkuhn2
Joined: 2004-04-13
Posts: 60 |
Posted: Wed, 2005-02-16 19:24 |
Request for improvement: The test suite does not explicitly define which database it is going to reset. The desired behavior would be a warning if the reset functions are going to affect all galleries, or just the one that is used to access the test suite. I also filed a sourceforge bug regarding the inability to log in from a secondary site multiinstall: https://sourceforge.net/tracker/index.php?func=detail&aid=1124211&group_id=7130&atid=107130 |
|
Posts: 8601
the test suite is nearly obsolete.. it's only still around because these are still useful: FlushCache, FlushTemplates, Reset, Reinit
that being said, i don't see the behavior you describe.. i'm able to see/use the test suite and run unit tests (lib/tools/phpunit/index.php) for a secondary install.
if you'd like me to debug this PM me ssh access to your system, thx.
Posts: 8601
sorry, above i was referring to not seeing the behavior you describe in the bug report.. turns out that was caused by a blank line added to config.php.
as for which db will be reset, for now you just have to be very careful to make sure the url you're using to access the test suite is for the G2 site you want to reset.
Posts: 8601
The CleanStore test already listed the database name that will be affected.. I have now added the table prefix as well so you can tell more precisely.