/** * This function removes any initialized data. */ protected function tearDown() { // Remove any users created on the Aflresco server if (!empty($this->userstodelete)) { foreach ($this->userstodelete as $usertodelete) { elis_files_delete_user($usertodelete, true); } } parent::tearDown(); }
/** * This function removes any initialized data. */ protected function tearDown() { if ($dir = elis_files_read_dir()) { foreach ($dir->folders as $folder) { if (strpos($folder->title, FOLDER_NAME_PREFIX) === 0) { elis_files_delete($folder->uuid); break 1; } } } parent::tearDown(); }
/** * This function removes any initialized data. */ protected function tearDown() { $this->cleanup_files(); parent::tearDown(); }
/** * Reset user. */ protected function tearDown() { $this->setUser(null); parent::tearDown(); }
/** * This function removes any initialized data. */ protected function tearDown() { foreach ($this->createduuids as $uuid) { elis_files_delete($uuid); } parent::tearDown(); }
/** * This function removes any initialized data. */ protected function tearDown() { global $USER; foreach ($this->createduuids as $uuid) { elis_files_delete($uuid); } if ($dir = elis_files_read_dir()) { foreach ($dir->files as $file) { if (strpos($file->title, FOLDER_NAME_PREFIX) === 0 || strpos($file->title, FILE_NAME_PREFIX) === 0 ) { elis_files_delete($file->uuid); } } } if ($this->testusercreated) { elis_files_delete_user($USER->username, true); } parent::tearDown(); }