Skip to content

Commit f5d6172

Browse files
committed
added test for url patterns
1 parent 08a1b96 commit f5d6172

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/HtmlProviderTest.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,23 @@ public function testNotAllowExternalImages()
3333
]
3434
);
3535
}
36+
37+
public function testAllowSomeExternalImages()
38+
{
39+
$this->assertEmbed(
40+
'http://www.brothers-brick.com/2016/04/06/stunning-lego-darth-vader-mask-cleverly-hides-scenes-from-star-wars/',
41+
[
42+
'image' => 'http://i0.wp.com/farm2.staticflickr.com/1458/25975786430_c69776287e_z.jpg?resize=625%2C495&ssl=1',
43+
], [
44+
'providers' => [
45+
'html' => [
46+
'externalImages' => [
47+
'*.staticflickr.com/*',
48+
'*.flickr.com/*',
49+
],
50+
],
51+
],
52+
]
53+
);
54+
}
3655
}

0 commit comments

Comments
 (0)