diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-05-03 00:15:28 +0200 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-06-15 09:58:27 +0200 |
commit | e0547a25ab9c5a3d9454611f72e00e3bc667e2d2 (patch) | |
tree | 7b8c8e9f556937f26fb8d478e29d095d4c25f83d /apps/files/tests | |
parent | ab411d2700c01886a67b30bce5f630cc6865a9bf (diff) | |
download | nextcloud-server-e0547a25ab9c5a3d9454611f72e00e3bc667e2d2.tar.gz nextcloud-server-e0547a25ab9c5a3d9454611f72e00e3bc667e2d2.zip |
if rename of file fails, the rename is undone in the view - #fix 2820
Changes:
* OC.dialog -> OC.Notification
* Added test
* Fixed OC.Notification.show() issue for queued items
* Highlight failed item and show notification
Diffstat (limited to 'apps/files/tests')
-rw-r--r-- | apps/files/tests/ajax_rename.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/tests/ajax_rename.php b/apps/files/tests/ajax_rename.php index 23e5761ddda..2b90a11743d 100644 --- a/apps/files/tests/ajax_rename.php +++ b/apps/files/tests/ajax_rename.php @@ -50,7 +50,7 @@ class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase { $result = $this->files->rename($dir, $oldname, $newname); $expected = array( 'success' => false, - 'data' => array('message' => 'Unable to rename file') + 'data' => array('message' => '%s could not be renamed') ); $this->assertEquals($expected, $result); |