MDL-23184 CLEAN_PARAM explanation improved in unittests

This commit is contained in:
Petr Skoda 2010-09-02 18:12:21 +00:00
parent 45423ee26d
commit fb59f2f126

View File

@ -246,7 +246,8 @@ class moodlelib_test extends UnitTestCase {
}
function test_clean_param_clean() {
//TODO: param clean is an ugly hack, do not use in new code (skodak)
// PARAM_CLEAN is an ugly hack, do not use in new code (skodak)
// instead use more specific type, or submit sothing that can be verified properly
$this->assertEqual(clean_param('xx<script>', PARAM_CLEAN), 'xx');
}