DB Integrity check

{foreach from=$reference_tests item=reference_test} {if isset($reference_test.errors)} {/if} {/foreach}
{'Test'|@translate} {'Result'|@translate}
{$reference_test.LABEL} ({$reference_test.COUNT} references) {if isset($reference_test.result)} {if $reference_test.result>0} {$reference_test.result} FAILED {else} {'Passed'|@translate} {/if} {/if}
{foreach from=$reference_test.errors item=error} {$error}
{/foreach}