Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved moodlelib_test to illustrate wrong style of writing unit tests
[moodle.git]
/
lib
/
simpletest
/
testmoodlelib.php
diff --git
a/lib/simpletest/testmoodlelib.php
b/lib/simpletest/testmoodlelib.php
index
2ae68cb
..
dcebab8
100644
(file)
--- a/
lib/simpletest/testmoodlelib.php
+++ b/
lib/simpletest/testmoodlelib.php
@@
-462,8
+462,8
@@
class moodlelib_test extends UnitTestCase {
$this->assertEqual($mon,12);
$this->assertEqual($year,2009);
$this->assertEqual($yday,357);
$this->assertEqual($mon,12);
$this->assertEqual($year,2009);
$this->assertEqual($yday,357);
- $this->assertEqual($weekday,'
Wednesday
');
- $this->assertEqual($month,'
December
');
+ $this->assertEqual($weekday,'
Středa
');
+ $this->assertEqual($month,'
prosinec
');
$arr = usergetdate($ts);//gets the timezone from the $USER object
$arr = array_values($arr);
$arr = usergetdate($ts);//gets the timezone from the $USER object
$arr = array_values($arr);
@@
-477,8
+477,8
@@
class moodlelib_test extends UnitTestCase {
$this->assertEqual($mon,12);
$this->assertEqual($year,2009);
$this->assertEqual($yday,357);
$this->assertEqual($mon,12);
$this->assertEqual($year,2009);
$this->assertEqual($yday,357);
- $this->assertEqual($weekday,'
Wednesday
');
- $this->assertEqual($month,'
December
');
+ $this->assertEqual($weekday,'
Středa
');
+ $this->assertEqual($month,'
prosinec
');
//set the timezone back to what it was
$USER->timezone = $userstimezone;
//set the timezone back to what it was
$USER->timezone = $userstimezone;