processFilesToRemove($instance->getFilesToRemove(622)); $this->assertTrue(!file_exists('include/utils/external_cache'), 'Assert that include/utils/external_cache was removed'); $this->assertTrue(file_exists('custom/backup/include/utils/external_cache'), 'Assert that the custom/backup/include/utils/external_cache directory was created'); $this->assertTrue(!file_exists('include/JSON.js'), 'Assert that include/JSON.js file is removed'); $this->assertTrue(file_exists('custom/backup/include/JSON.js'), 'Assert that include/JSON.js was moved to custom/backup/include/JSON.js'); } } class UpgradeRemoval62xMock extends UpgradeRemoval { public function getFilesToRemove($version) { $files = array(); $files[] = 'include/utils/external_cache'; $files[] = 'include/JSON.js'; return $files; } } ?>