mirror of
https://github.com/moodle/moodle.git
synced 2025-02-15 13:24:56 +01:00
lib MDL-20537 Added another unit test for shorten_text
This commit is contained in:
parent
321ee52976
commit
1fca8fa5fc
@ -380,6 +380,10 @@ class moodlelib_test extends UnitTestCase {
|
||||
$text = "<h3>standard 'break-out' sub groups in TGs?</h3> <<There are several";
|
||||
$this->assertEqual("<h3>standard 'break-out' sub groups in ...</h3>",
|
||||
shorten_text($text, 43));
|
||||
|
||||
$text = "<h1>123456789</h1>";//a string with no convenient breaks
|
||||
$this->assertEqual("<h1>12345...</h1>",
|
||||
shorten_text($text, 8));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user