Skip to content

Commit e94a8bc

Browse files
committed
changed test providing random results
1 parent c65084c commit e94a8bc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/ImagesBlacklistTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ class ImagesBlacklistTest extends TestCaseBase
55
public function testPlainText()
66
{
77
$this->assertEmbed(
8-
'https://github.com/oscarotero/Embed',
8+
'http://alistapart.com/article/the-rich-typefaces-get-richer',
99
[
10-
'image' => 'https://assets-cdn.github.com/images/spinners/octocat-spinner-32-EAF2F5.gif',
10+
'image' => 'http://alistapart.com/d/_made/pix/authors/photos/shoaf-headshot_120_120_c1.jpg',
1111
], [
1212
'adapter' => [
1313
'config' => [
1414
'imagesBlacklist' => [
15-
'https://avatars1.githubusercontent.com/u/377873?v=3&s=400',
15+
'http://alistapart.com/components/assets/img/ala-logo-big.png',
1616
],
1717
],
1818
],
@@ -23,14 +23,14 @@ public function testPlainText()
2323
public function testPlainUrlMatch()
2424
{
2525
$this->assertEmbed(
26-
'https://github.com/oscarotero/Embed',
26+
'http://alistapart.com/article/the-rich-typefaces-get-richer',
2727
[
28-
'image' => 'https://assets-cdn.github.com/images/spinners/octocat-spinner-32-EAF2F5.gif',
28+
'image' => 'http://alistapart.com/d/_made/pix/authors/photos/shoaf-headshot_120_120_c1.jpg',
2929
], [
3030
'adapter' => [
3131
'config' => [
3232
'imagesBlacklist' => [
33-
'*.githubusercontent.com*',
33+
'*-logo-*',
3434
],
3535
],
3636
],
@@ -41,14 +41,14 @@ public function testPlainUrlMatch()
4141
public function testAuthorizedImage()
4242
{
4343
$this->assertEmbed(
44-
'https://github.com/oscarotero/Embed',
44+
'http://alistapart.com/article/the-rich-typefaces-get-richer',
4545
[
46-
'image' => 'https://avatars1.githubusercontent.com/u/377873?v=3&s=400',
46+
'image' => 'http://alistapart.com/components/assets/img/ala-logo-big.png',
4747
], [
4848
'adapter' => [
4949
'config' => [
5050
'imagesBlacklist' => [
51-
'*/octocat-spinner-*',
51+
'*/photos/*',
5252
],
5353
],
5454
],

0 commit comments

Comments
 (0)