184 Commits

Author SHA1 Message Date
Eloy Lafuente
6f5a517f68 MDL-21007 - take out the box saying FakeTests are disabled. Not needed anymore. 2009-11-30 23:33:24 +00:00
Eloy Lafuente
2319bdedd6 MDL-21007 UnitTestCaseUsingDatabase misconfigured unit tests now reported as skipped 2009-11-30 23:18:34 +00:00
Andrew Davis
2b4d40c9ac unit tests MDL-19060 unified the two checks for CVS directories 2009-11-30 01:14:30 +00:00
Andrew Davis
f6607a9c16 unit test MDL-19060 prevent unit tests from scanning cvs and .git directories 2009-11-27 05:39:35 +00:00
Martin Dougiamas
b1a59fb900 security report MDL-20834 Fixed DML for the backup risk checker for HEAD 2009-11-26 09:18:32 +00:00
Sam Hemelryk
08f9410378 admin MDL-20980 Touched up regex that determines weak password salts 2009-11-26 09:03:38 +00:00
Martin Dougiamas
dbec9afd01 security report MDL-20834 Merged 'report_security_check_riskbackup' check from 1.9 2009-11-26 08:32:48 +00:00
Tim Hunt
9aa653f124 Unit tests: Change the parent class to avoid a deprecated class.
This is necessary to make it work in PHP 5.3 (as well as PHP 4).
2009-11-24 21:44:59 +00:00
Sam Hemelryk
e019158c7d security MDL-18807 Changed language strings: Thanks for the new strings Helen 2009-11-18 09:55:03 +00:00
Petr Skoda
af2d263f99 MDL-18006 MDL-18807 MDL-20853 warn that the default salt is definitely weak 2009-11-17 16:36:23 +00:00
Petr Skoda
4c1ba3ffc7 MDL-18006 MDL-18807 MDL-20853 merging sam's changes from MOODLE_19_STABLE, going to fix some more problems in this new code soon 2009-11-17 16:11:25 +00:00
Andrew Davis
1e252026e8 report backup MDL-19903 Fixed backup report table header 2009-11-13 06:09:54 +00:00
Petr Skoda
0ac940b3bf MDL-20712 using just $capablities for capability definition array, all other files in db/* do not use component names in definition array; old capability array names are of course supported 2009-11-04 19:24:12 +00:00
Sam Hemelryk
8bdc9cacad files MDL-20601 Conversion of many of the uses of print_textarea, and the mforms htmleditor to the new editor
Please forgive me if I have missed converting any output statements. If you do find an output statement that is not formatting correctly please refere to the table I added to this bug in regards to how it should be formatted.
2009-11-04 06:14:06 +00:00
Petr Skoda
24eb994795 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 11:14:50 +00:00
Petr Skoda
0df0df23f4 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 10:55:31 +00:00
Petr Skoda
244bb39668 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 10:42:45 +00:00
Petr Skoda
2e9b772fb8 MDL-20693 new NO_DEBUG_DISPLAY define 2009-10-31 22:02:05 +00:00
samhemelryk
c5e4f81d9a admin MDL-19787 Added PAGE->set_url calls and removed $Id tags 2009-10-15 02:19:51 +00:00
skodak
d6960b0bd1 MDL-19474 finally dropping support for old adodb moodle database drivers, yay! 2009-10-08 22:04:32 +00:00
stronk7
c51ca8350e Proper connection exception handling in the DB functional tests. 2009-09-02 16:24:43 +00:00
nicolasconnault
414a4a91b1 MDL-19787 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:39:07 +00:00
nicolasconnault
8fbce1c8c8 MDL-19878 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 04:28:40 +00:00
nicolasconnault
b324b47e36 MDL-19787 Upgraded calls to choose_from_menu 2009-08-17 15:15:20 +00:00
nicolasconnault
20486a5a21 MDL-19787 Converted print_box* to $OUTPUT->box* 2009-08-10 04:53:22 +00:00
nicolasconnault
eecc6a17bc MDL-19787 Converted calls to print_paging_bar 2009-08-07 00:29:59 +00:00
nicolasconnault
73d6f52f6a MDL-19787 Converted all print_footer() calls 2009-08-06 14:12:46 +00:00
nicolasconnault
2fff8846f2 MDL-19787 Migrated calls to print_heading 2009-08-06 08:17:12 +00:00
nicolasconnault
bfe5741703 MDL-19787 Migrated calls to print_checkbox() 2009-08-06 06:56:33 +00:00
tjhunt
5d3b999468 MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:26:02 +00:00
tjhunt
73511be761 MDL-19690 - 4 more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:12:19 +00:00
samhemelryk
2a29ba7edb admin reports MDL-16706 Eliminated inline scripts to use PAGE methods 2009-07-02 04:10:56 +00:00
stronk7
e5d06af22e MDL-19579 code coverage - show link to latest complete report 2009-06-26 17:07:33 +00:00
stronk7
70013fdcf9 XHTML Strict 2009-06-26 15:46:25 +00:00
stronk7
5d902b5da5 Fix unit|db tests OUTPUT 2009-06-26 09:50:06 +00:00
tjhunt
e29380f3c4 themes: MDL-19077 fix install regression 2009-06-26 09:38:14 +00:00
stronk7
e2074b8b43 MDL-19579 code coverage - initial frontend for both unit and db tests 2009-06-26 09:10:01 +00:00
tjhunt
34a2777ccb themes: MDL-19077 new $OUTPUT->header/footer to replace print_header/footer.
Also, part of the change from weblib.php functions to $OUTPUT-> methods.

This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

This is a big change, and the result is not perfect yet. Expect some debugging output
on some pages.

The main part of these changes are that $OUTPUT->header now looks for a file
in the theme called layout.php, rather than header.html and footer.html. Also
you can have special templates for certain pages like layout-home.php. There is
fallback code for Moodle 1.9 themes, so they still work.

A few of the old arguments to print_header are no longer supported. (You get an
exception if you try to use them.) Sam H will be cleaning those up.

All the weblib functions that have been replaced with $OUTPUT-> have version in
deprecatedlib, so existing code will go on working for the foreseeable future.
2009-06-26 09:06:16 +00:00
stronk7
c530a78a1c MDL-19579 code coverage - add file.php-like script to serve static reports
from dataroot/codecoverage/[dbtest|unittest]. Requires login + site:config cap
2009-06-25 23:54:22 +00:00
tjhunt
edc2edddcd Fix deprecated function use. 2009-06-25 12:36:51 +00:00
tjhunt
c207b6bece Remove a few unnecessary references to global $THEME. 2009-06-25 03:26:58 +00:00
tjhunt
4ab836113a Unit tests: show total time taken to run the tests. 2009-06-23 10:34:21 +00:00
tjhunt
d83b1d0639 unit tests: raise_memeory_limit. I was running out when running all tests. 2009-06-23 10:33:58 +00:00
skodak
17da2e6f28 MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
tjhunt
cf6155226c ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc.
There is a new implementation of require_js in lib/deprecatedlib.php,
based on $PAGE->requires.

There were a few other recently introduced functions in lib/weblib.php,
namely print_js_call, print_delayed_js_call, print_js_config and
standard_js_config. These have been removed, since they were never in
a stable branch, and all the places that used them have been changed
to use the newer $PAGE->requires->... methods.

get_require_js_code is also gone, and the evil places that were calling
it, even though it is an internal function, have been fixed.

Also, I made some minor improvements to the code I committed yesterday
for MDL-16695.

All that remains is to update all the places in core code that are
still using require_js.

(This commit also fixes the problem where the admin tree would not
start with the right categories expanded.)
2009-06-12 12:13:07 +00:00
tjhunt
82611d8d33 moodle_page: MDL-12212 ->docspath 2009-05-06 08:48:13 +00:00
tjhunt
ad5d5997ed moodle_page: MDL-12212 more ->pagepaths to kill 2009-05-06 08:43:51 +00:00
tjhunt
6b037e0420 filters: MDL 7336 Remove remaining references to ->filters 2009-04-13 07:04:32 +00:00
poltawski
ffeadcd485 course overview report: MDL-18286 - verson number bump wasn't merged properly
Grrrrrrrrrrrrrrrrr Petr! ;-)
2009-03-26 10:57:18 +00:00
tjhunt
f68cb08bbe unit tests: MDL-18607 new way to do unit tests involving the database.
This is not as ambitious as the abortive FakeDBUnitTests scheme, but this one works for simple cases.

There is a new test case class UnitTestCaseUsingDatabase to inherit from. I hope it is sufficiently well documented in its PHPdocs.
* It users $CFG->unittestprefix.
* You can access that database using $this->testdb.
* That database is empty by default, you have to call create_test_table to create the ones you want, and drop_test_table to clean them up in the end. The table definitions are read from the XMLDB file.
* When you are ready to call real Moodle code that users $DB, call switch_to_test_db and then revert_to_real_db when you are done.
* If you forget to call drop_test_table or switch_to_test_db, the class will attempt to clean up after you, but will also print rude developer debug messages telling you not to be stupid.
* There is also a load_test_data method for populating a table from an array.

The is an example of its use in lib/simpletest/testunittestusingdb.php.
2009-03-23 04:12:37 +00:00