mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Add instance url to the downloaded images
This commit is contained in:
parent
48656e0eaa
commit
41ada277f0
3 changed files with 20 additions and 2 deletions
|
@ -27,9 +27,11 @@ class DownloadImagesTest extends \PHPUnit_Framework_TestCase
|
|||
$logger = new Logger('test', array($logHandler));
|
||||
|
||||
$download = new DownloadImages($client, sys_get_temp_dir().'/wallabag_test', $logger);
|
||||
$download->setWallabagUrl('http://wallabag.io/');
|
||||
|
||||
$res = $download->processHtml('<div><img src="http://i.imgur.com/T9qgcHc.jpg" /></div>', 'http://imgur.com/gallery/WxtWY');
|
||||
|
||||
$this->assertContains('/assets/images/4/2/4258f71e/c638b4c2.png', $res);
|
||||
$this->assertContains('http://wallabag.io/assets/images/4/2/4258f71e/c638b4c2.png', $res);
|
||||
}
|
||||
|
||||
public function testProcessHtmlWithBadImage()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue