From 324715c802bbd6f3eb25ac481b2a10812ee2e2d2 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Mon, 6 Sep 2010 12:55:58 +0000 Subject: [PATCH] MDL-19057 new diagnose() method test --- lib/dml/simpletest/testdml.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/dml/simpletest/testdml.php b/lib/dml/simpletest/testdml.php index 8ab84ce2c2d..a7b19d015c4 100755 --- a/lib/dml/simpletest/testdml.php +++ b/lib/dml/simpletest/testdml.php @@ -77,6 +77,12 @@ class dml_test extends UnitTestCase { return new xmldb_table($tablename); } + function test_diagnose() { + $DB = $this->tdb; + $result = $DB->diagnose(); + $this->assertNull($result, 'Database self diagnostics failed %s'); + } + function test_fix_sql_params() { $DB = $this->tdb;