unit test should not access live database #897

robocoder opened this Issue Aug 3, 2009 · 3 comments

1 participant


This is not normally a problem for most users since releases do not include the unit tests.

For the benefit of developers, however...

While fixing #896, I noticed version_core in my live database got munged. When I revisited the dashboard, it prompted a database upgrade (from 0.2.9).


Munging of piwik_option table doesn't appear to be reproduceable after #896.

However, API/DocumentationGenerator.test.php continues to access the live database. If possible, this should be changed.


This just bothered me too much...


(In [1360]) fixes #897 - unit tests should not access live database

@robocoder robocoder added this to the Piwik 0.4.3 milestone Jul 8, 2014
@robocoder robocoder self-assigned this Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment