diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-06-24 17:39:22 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-06-29 14:06:32 +0200 |
commit | abb0c728ef1c7e84625e6f1a10aae740f5bb4ac5 (patch) | |
tree | 27c61fb561b4c08e1efb30621e85a3678b20e234 /apps | |
parent | 786ec82a619abfc330bb0ff0d8db3398cb1bba01 (diff) | |
download | nextcloud-server-abb0c728ef1c7e84625e6f1a10aae740f5bb4ac5.tar.gz nextcloud-server-abb0c728ef1c7e84625e6f1a10aae740f5bb4ac5.zip |
handle error during setup
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/tests/unsharechildren.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_sharing/tests/unsharechildren.php b/apps/files_sharing/tests/unsharechildren.php index 0cf551c0500..c57070ba641 100644 --- a/apps/files_sharing/tests/unsharechildren.php +++ b/apps/files_sharing/tests/unsharechildren.php @@ -40,7 +40,7 @@ class UnshareChildren extends TestCase { \OCP\Util::connectHook('OC_Filesystem', 'post_delete', '\OCA\Files_Sharing\Hooks', 'unshareChildren'); $this->folder = self::TEST_FOLDER_NAME; - $this->subfolder = '/subfolder_share_api_test'; + $this->subfolder = '/subfolder_share_api_test'; $this->subsubfolder = '/subsubfolder_share_api_test'; $this->filename = '/share-api-test'; @@ -49,12 +49,14 @@ class UnshareChildren extends TestCase { $this->view->mkdir($this->folder); $this->view->mkdir($this->folder . $this->subfolder); $this->view->mkdir($this->folder . $this->subfolder . $this->subsubfolder); - $this->view->file_put_contents($this->folder.$this->filename, $this->data); + $this->view->file_put_contents($this->folder . $this->filename, $this->data); $this->view->file_put_contents($this->folder . $this->subfolder . $this->filename, $this->data); } protected function tearDown() { - $this->view->deleteAll($this->folder); + if ($this->view) { + $this->view->deleteAll($this->folder); + } self::$tempStorage = null; |