MDL-37774 Add unit test to illustrate the problem with the trailing slash
authorDavid Mudrák <david@moodle.com>
Fri, 8 Feb 2013 10:41:38 +0000 (11:41 +0100)
committerDavid Mudrák <david@moodle.com>
Sun, 10 Feb 2013 00:54:41 +0000 (01:54 +0100)
commit68c1945a8e3676945a0ca3a610c82b4ffbdf01c3
tree0884ab9eac7e2735cd6af403a1efa84034e20a4d
parentc1921325d466c8b7cfd050cdd3e51c99ca8d44c4
MDL-37774 Add unit test to illustrate the problem with the trailing slash

The patch introduces two new tests for moodle1_file_manager::migrate_directory().
The second test with the trailing slash reveals the trouble here.
The expected behaviour is that the method would deal with the trailing
slash. Debugging message for the developer should be displayed though.
backup/converter/moodle1/tests/lib_test.php