Added a new set of tests for checking the integrity of the WebGUI database.

The first tests, Asset_diagnose.t checks that assetIds match in tables
asset, assetData and each Asset's default table.

Asset/Wobject/DataForm_diagnose.t adds tests for verifying DataForm
collateral tables, DataForm_field and DataForm_tab.  With a few
small changes, the test could also cover the DataForm data tables,
DataForm_entry and DataForm_entryData.

The tests are optimized to do a quick preliminary test, and if this
test fails, then an in-depth test is run.  This second test will
run a VERY VERY VERY long time, but will tell you exactly what's
missing from your tables.

The new tests require the module Test::Deep, for comparing data structures.
This commit is contained in:
Colin Kuskie 2006-02-26 04:03:10 +00:00
parent dd2a923022
commit 4e9eb32635
4 changed files with 127 additions and 0 deletions

View file

@ -39,6 +39,7 @@
SiteMap feature.
- [ 1433525 ] 6.9: Compilation errors
- base36 removed from Utility.t because it no longer exists in WebGUI::Utility.pm
- Add tests that verify the integrity of the WebGUI Database.
6.8.8
- fix [ 1437186 ] 6.8.7 deploy DataForm package does not copy fields