We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08a1b96 commit f5d6172Copy full SHA for f5d6172
tests/HtmlProviderTest.php
@@ -33,4 +33,23 @@ public function testNotAllowExternalImages()
33
]
34
);
35
}
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
+ }
55
0 commit comments