Skip to content

Commit 799a205

Browse files
committed
getTags() tests for youtube
1 parent a77080b commit 799a205

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

tests/TestCaseBase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ protected function assertEmbed($url, array $info, array $config = array())
5656
case 'height':
5757
case 'imageWidth':
5858
case 'imageHeight':
59+
case 'tags':
5960
$this->assertSame($value, $i->$name);
6061
break;
6162

tests/YoutubeTest.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,32 @@ public function testOne()
1515
'authorUrl' => 'https://www.youtube.com/user/smshdchrb',
1616
'providerName' => 'YouTube',
1717
'providerUrl' => 'https://www.youtube.com/',
18+
'tags'=>[
19+
'kittens',
20+
'cats',
21+
'hungry',
22+
'cat',
23+
'baby',
24+
'eight',
25+
'weeks',
26+
'old',
27+
'noisy',
28+
'meow',
29+
'funny',
30+
'kitties',
31+
'feline',
32+
'dinner',
33+
'excited',
34+
'loud',
35+
'cute',
36+
'pet',
37+
'food',
38+
'time',
39+
'felix',
40+
'kitty',
41+
'catz',
42+
'l...',
43+
],
1844
]
1945
);
2046
}

0 commit comments

Comments
 (0)