Skip to content
  • Nathan Lewis's avatar
    Fix phpunit testing framework (Bug #1288439) · 774a884c
    Nathan Lewis authored and Aaron Wells's avatar Aaron Wells committed
    
    
    - uninstall does not remove triggers that are added by
    notification/internal module, causing errors when trying to re-run
    testing (when testing, all database objects are deleted then recreated,
    but the triggers already exist).
    
    - assertType is no longer available and should use assertInternalType
    instead (for int value).
    
    - there is a typo in lib/ddl.php find_key_name function which causes
    problems when creating and removing the test db tables.
    
    - there is a logic problem in lib/ddl.php uninstall_from_xmldb_file.
    array_multisort is being used incorrectly and sometimes causes the
    primary key to be removed before foreign keys which results in a
    database error.
    
    - the function removecolumn in lib/view.php has changed and the test is
    no longer valid.
    
    Change-Id: Ibee48e557912e09cf6533132ba771bfb2c44749f
    Signed-off-by: default avatarNathan Lewis <nathan.lewis@totaralms.com>
    774a884c