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>
Fri, 8 Feb 2013 10:41:38 +0000 (11:41 +0100)
commit86083f9752aca6d7e17f388eeb4e73b4d6ca16da
tree2da25a17ea42ebb93d0b639baa717a3131c772b0
parent6319737865e0e22eca1a8f203d999ba932be1b86
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