Skip to content
Snippets Groups Projects
Commit 8a06f2e1 authored by Thomas Müller's avatar Thomas Müller
Browse files

php 5.3 compatibility for Test_Files_Sharing_Api

parent 51b581a8
No related branches found
No related tags found
No related merge requests found
......@@ -295,7 +295,8 @@ class Test_Files_Sharing_Api extends \PHPUnit_Framework_TestCase {
$result = Share\Api::getShare($params);
$this->assertEquals(404, $result->getStatusCode());
$this->assertEquals('share doesn\'t exist', $result->getMeta()['message']);
$meta = $result->getMeta();
$this->assertEquals('share doesn\'t exist', $meta['message']);
}
......@@ -351,7 +352,8 @@ class Test_Files_Sharing_Api extends \PHPUnit_Framework_TestCase {
$result = Share\Api::updateShare($params);
$this->assertTrue($result->succeeded(), $result->getMeta()['message']);
$meta = $result->getMeta();
$this->assertTrue($result->succeeded(), $meta['message']);
$items = \OCP\Share::getItemShared('file', $userShare['file_source']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment