Make unit tests expect the svg icons
This commit is contained in:
parent
0624476aa1
commit
f710205ee7
|
@ -110,7 +110,9 @@ class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase {
|
||||||
$this->assertEquals('/test', $result['data']['directory']);
|
$this->assertEquals('/test', $result['data']['directory']);
|
||||||
$this->assertEquals(18, $result['data']['size']);
|
$this->assertEquals(18, $result['data']['size']);
|
||||||
$this->assertEquals('httpd/unix-directory', $result['data']['mime']);
|
$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']);
|
$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(18, $result['data']['size']);
|
||||||
$this->assertEquals('httpd/unix-directory', $result['data']['mime']);
|
$this->assertEquals('httpd/unix-directory', $result['data']['mime']);
|
||||||
$this->assertEquals('abcdef', $result['data']['etag']);
|
$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']);
|
$this->assertFalse($result['data']['isPreviewAvailable']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue