]> source.dussan.org Git - nextcloud-server.git/commitdiff
add error message to the assert
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 25 Sep 2013 07:43:16 +0000 (09:43 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 25 Sep 2013 07:43:16 +0000 (09:43 +0200)
apps/files_sharing/tests/api.php

index a112ae7b27c77de6eeac050a249846688e526060..02adff7dfaa8b91cbfb9d543f54be4c62ea1ce37 100644 (file)
@@ -25,7 +25,7 @@ require_once __DIR__ . '/../../../lib/base.php';
 use OCA\Files\Share;
 
 /**
- * Class Test_Encryption_Share
+ * Class Test_Files_Sharing_Api
  */
 class Test_Files_Sharing_Api extends \PHPUnit_Framework_TestCase {
 
@@ -255,7 +255,7 @@ class Test_Files_Sharing_Api extends \PHPUnit_Framework_TestCase {
 
                $result = Share\Api::updateShare($params);
 
-               $this->assertTrue($result->succeeded());
+               $this->assertTrue($result->succeeded(), $result->getMeta()['message']);
 
                $items = \OCP\Share::getItemShared('file', $userShare['file_source']);