diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-02-20 16:56:09 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-02-20 16:56:09 +0100 |
commit | f710205ee766cb2c12cf21d28cd5295d9fff432c (patch) | |
tree | d59fb30a917a4782dfdf750ebcf4e6de2f82324c | |
parent | 0624476aa19a63b1f4e35f35e151c3fc46cb697f (diff) | |
download | nextcloud-server-f710205ee766cb2c12cf21d28cd5295d9fff432c.tar.gz nextcloud-server-f710205ee766cb2c12cf21d28cd5295d9fff432c.zip |
Make unit tests expect the svg icons
-rw-r--r-- | apps/files/tests/ajax_rename.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files/tests/ajax_rename.php b/apps/files/tests/ajax_rename.php index a1a5c8983ba..e53c0fb3dd1 100644 --- a/apps/files/tests/ajax_rename.php +++ b/apps/files/tests/ajax_rename.php @@ -110,7 +110,9 @@ class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase { $this->assertEquals('/test', $result['data']['directory']); $this->assertEquals(18, $result['data']['size']); $this->assertEquals('httpd/unix-directory', $result['data']['mime']); - $this->assertEquals(\OC_Helper::mimetypeIcon('dir'), $result['data']['icon']); + $icon = \OC_Helper::mimetypeIcon('dir'); + $icon = substr($icon, 0, -3) . 'svg'; + $this->assertEquals($icon, $result['data']['icon']); $this->assertFalse($result['data']['isPreviewAvailable']); } @@ -165,7 +167,9 @@ class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase { $this->assertEquals(18, $result['data']['size']); $this->assertEquals('httpd/unix-directory', $result['data']['mime']); $this->assertEquals('abcdef', $result['data']['etag']); - $this->assertEquals(\OC_Helper::mimetypeIcon('dir'), $result['data']['icon']); + $icon = \OC_Helper::mimetypeIcon('dir'); + $icon = substr($icon, 0, -3) . 'svg'; + $this->assertEquals($icon, $result['data']['icon']); $this->assertFalse($result['data']['isPreviewAvailable']); } |