/**
     * 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();
    }
Example #2
0
 /**
  * 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();
 }
Example #3
0
 /**
  * This function removes any initialized data.
  */
 protected function tearDown() {
     $this->cleanup_files();
     parent::tearDown();
 }
Example #4
0
 /**
  * Reset user.
  */
 protected function tearDown()
 {
     $this->setUser(null);
     parent::tearDown();
 }
Example #5
0
    /**
     * This function removes any initialized data.
     */
    protected function tearDown() {
        foreach ($this->createduuids as $uuid) {
            elis_files_delete($uuid);
        }

        parent::tearDown();
    }
Example #6
0
    /**
     * 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();
    }