Skip to content

Commit 8fd33f3

Browse files
committed
Removed disabled/flaky #tests
1 parent fb4b6d9 commit 8fd33f3

File tree

2 files changed

+0
-222
lines changed

2 files changed

+0
-222
lines changed

docs/testdox.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6841,7 +6841,6 @@ Parser (s9e\TextFormatter\Tests\Plugins\MediaEmbed\Parser)
68416841
[x] Scraping tests with data set #52
68426842
[x] Scraping tests with data set #53
68436843
[x] Scraping tests with data set #54
6844-
[x] Scraping tests with data set #55
68456844
[x] Scraping+rendering tests with data set #0
68466845
[x] Scraping+rendering tests with data set #1
68476846
[x] Scraping+rendering tests with data set #2

tests/Plugins/MediaEmbed/ParserTest.php

Lines changed: 0 additions & 221 deletions
Original file line numberDiff line numberDiff line change
@@ -503,16 +503,6 @@ function ($configurator)
503503
$configurator->MediaEmbed->add('acast');
504504
}
505505
],
506-
// [
507-
// 'https://shows.acast.com/thefightingcock/s11e09-gil',
508-
// '<r><ACAST episode_id="611fda6e1e62460013acb5fb" show_id="55daacdd-0c7e-4338-bbc9-57b60dcfd638">https://shows.acast.com/thefightingcock/s11e09-gil</ACAST></r>',
509-
// [],
510-
// function ($configurator)
511-
// {
512-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
513-
// $configurator->MediaEmbed->add('acast');
514-
// }
515-
// ],
516506
[
517507
'https://play.acast.com/s/e3178447-8d7d-556e-bece-5d8f7c4dd539/f38da59a-9eb9-42f7-a0bf-a633ef813202?seek=125',
518508
'<r><ACAST episode_id="f38da59a-9eb9-42f7-a0bf-a633ef813202" show_id="e3178447-8d7d-556e-bece-5d8f7c4dd539" t="125">https://play.acast.com/s/e3178447-8d7d-556e-bece-5d8f7c4dd539/f38da59a-9eb9-42f7-a0bf-a633ef813202?seek=125</ACAST></r>',
@@ -553,46 +543,6 @@ function ($configurator)
553543
$configurator->MediaEmbed->add('audius');
554544
}
555545
],
556-
// [
557-
// 'http://proleter.bandcamp.com/album/curses-from-past-times-ep',
558-
// '<r><BANDCAMP album_id="1122163921">http://proleter.bandcamp.com/album/curses-from-past-times-ep</BANDCAMP></r>',
559-
// [],
560-
// function ($configurator)
561-
// {
562-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
563-
// $configurator->MediaEmbed->add('bandcamp');
564-
// }
565-
// ],
566-
// [
567-
// 'http://proleter.bandcamp.com/track/muhammad-ali',
568-
// '<r><BANDCAMP album_id="1122163921" track_id="3496015802" track_num="7">http://proleter.bandcamp.com/track/muhammad-ali</BANDCAMP></r>',
569-
// [],
570-
// function ($configurator)
571-
// {
572-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
573-
// $configurator->MediaEmbed->add('bandcamp');
574-
// }
575-
// ],
576-
// [
577-
// 'http://therunons.bandcamp.com/track/still-feel',
578-
// '<r><BANDCAMP track_id="2146686782">http://therunons.bandcamp.com/track/still-feel</BANDCAMP></r>',
579-
// [],
580-
// function ($configurator)
581-
// {
582-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
583-
// $configurator->MediaEmbed->add('bandcamp');
584-
// }
585-
// ],
586-
// [
587-
// 'http://bleacherreport.com/articles/2415420-creating-a-starting-xi-of-the-most-overrated-players-in-world-football',
588-
// '<r><BLEACHERREPORT id="dtYjVhdDr5492cyQTjVPDcM--Mg2rJj5">http://bleacherreport.com/articles/2415420-creating-a-starting-xi-of-the-most-overrated-players-in-world-football</BLEACHERREPORT></r>',
589-
// [],
590-
// function ($configurator)
591-
// {
592-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
593-
// $configurator->MediaEmbed->add('bleacherreport');
594-
// }
595-
// ],
596546
[
597547
'https://decoding-the-gurus.captivate.fm/episode/sam-harris',
598548
'<r><CAPTIVATE id="ec119d4f-acc4-464a-8976-1fafc3e2d23b">https://decoding-the-gurus.captivate.fm/episode/sam-harris</CAPTIVATE></r>',
@@ -603,16 +553,6 @@ function ($configurator)
603553
$configurator->MediaEmbed->add('captivate');
604554
}
605555
],
606-
// [
607-
// 'http://www.cc.com/video-clips/uu5qz4/key-and-peele-dueling-hats',
608-
// '<r><COMEDYCENTRAL id="mgid:arc:video:comedycentral.com:bc275e2f-48e3-46d9-b095-0254381497ea">http://www.cc.com/video-clips/uu5qz4/key-and-peele-dueling-hats</COMEDYCENTRAL></r>',
609-
// [],
610-
// function ($configurator)
611-
// {
612-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
613-
// $configurator->MediaEmbed->add('comedycentral');
614-
// }
615-
// ],
616556
[
617557
'https://www.cnbc.com/video/2019/06/05/carplay-android-auto-alexa-big-tech-gets-into-our-cars.html',
618558
'<r><CNBC id="7000082990">https://www.cnbc.com/video/2019/06/05/carplay-android-auto-alexa-big-tech-gets-into-our-cars.html</CNBC></r>',
@@ -633,26 +573,6 @@ function ($configurator)
633573
$configurator->MediaEmbed->add('dumpert');
634574
}
635575
],
636-
// [
637-
// 'http://8tracks.com/lovinq/headphones-in-world-out',
638-
// '<r><EIGHTTRACKS id="4982023">http://8tracks.com/lovinq/headphones-in-world-out</EIGHTTRACKS></r>',
639-
// [],
640-
// function ($configurator)
641-
// {
642-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
643-
// $configurator->MediaEmbed->add('eighttracks');
644-
// }
645-
// ],
646-
// [
647-
// 'https://fb.watch/3zYsXdnxjf/',
648-
// '<r><FACEBOOK id="426049188812854" type="v" user="stvnews">https://fb.watch/3zYsXdnxjf/</FACEBOOK></r>',
649-
// [],
650-
// function ($configurator)
651-
// {
652-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
653-
// $configurator->MediaEmbed->add('facebook');
654-
// }
655-
// ],
656576
[
657577
// https://about.fb.com/news/2022/09/deterring-scraping-by-protecting-facebook-identifiers/
658578
// https://news.ycombinator.com/item?id=32117489
@@ -837,26 +757,6 @@ function ($configurator)
837757
$configurator->MediaEmbed->add('giphy');
838758
}
839759
],
840-
// [
841-
// 'http://www.hudl.com/v/CVmja',
842-
// '<r><HUDL athlete="2122944" highlight="5721c090dfe23b2d68a2283b">http://www.hudl.com/v/CVmja</HUDL></r>',
843-
// [],
844-
// function ($configurator)
845-
// {
846-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
847-
// $configurator->MediaEmbed->add('hudl');
848-
// }
849-
// ],
850-
// [
851-
// 'http://www.hulu.com/watch/484180',
852-
// '<r><HULU id="zPFCgxncn97IFkqEnZ-kRA">http://www.hulu.com/watch/484180</HULU></r>',
853-
// [],
854-
// function ($configurator)
855-
// {
856-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
857-
// $configurator->MediaEmbed->add('hulu');
858-
// }
859-
// ],
860760
[
861761
'http://www.imdb.com/video/epk/vi387296537/',
862762
'<r><IMDB id="387296537">http://www.imdb.com/video/epk/vi387296537/</IMDB></r>',
@@ -998,16 +898,6 @@ function ($configurator)
998898
$configurator->MediaEmbed->add('npr');
999899
}
1000900
],
1001-
// [
1002-
// 'http://n.pr/1Qky1m5',
1003-
// '<r><NPR i="411271189" m="411271193">http://n.pr/1Qky1m5</NPR></r>',
1004-
// [],
1005-
// function ($configurator)
1006-
// {
1007-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
1008-
// $configurator->MediaEmbed->add('npr');
1009-
// }
1010-
// ],
1011901
[
1012902
'https://odysee.com/@ozgoals:a/Deni-Juric-Goal-2-0-%C5%A0IBENIK-vs-SLAVEN-Apr21:8',
1013903
'<r><ODYSEE id="8726b01100463c4e254a38c3108ef3e05791aeda" name="Deni-Juric-Goal-2-0-%C5%A0IBENIK-vs-SLAVEN-Apr21" path="@ozgoals%3Aa/Deni-Juric-Goal-2-0-%C5%A0IBENIK-vs-SLAVEN-Apr21:8">https://odysee.com/@ozgoals:a/Deni-Juric-Goal-2-0-%C5%A0IBENIK-vs-SLAVEN-Apr21:8</ODYSEE></r>',
@@ -1042,16 +932,6 @@ function ($configurator)
1042932
$configurator->MediaEmbed->add('slideshare');
1043933
}
1044934
],
1045-
// [
1046-
// 'https://soundcloud.com/topdawgent/i-1/s-GT9Cd',
1047-
// '<r><SOUNDCLOUD id="topdawgent/i-1/s-GT9Cd" secret_token="s-GT9Cd" track_id="168988860">https://soundcloud.com/topdawgent/i-1/s-GT9Cd</SOUNDCLOUD></r>',
1048-
// [],
1049-
// function ($configurator)
1050-
// {
1051-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
1052-
// $configurator->MediaEmbed->add('soundcloud');
1053-
// }
1054-
// ],
1055935
[
1056936
'https://soundcloud.com/andrewbird/three-white-horses',
1057937
'<r><SOUNDCLOUD id="andrewbird/three-white-horses" track_id="59509713">https://soundcloud.com/andrewbird/three-white-horses</SOUNDCLOUD></r>',
@@ -1186,40 +1066,6 @@ function ($configurator)
11861066
$configurator->MediaEmbed->add('tumblr');
11871067
}
11881068
],
1189-
// [
1190-
// 'https://247sports.com/Player/LeSean-McCoy-25234/',
1191-
// '<r><TWENTYFOURSEVENSPORTS player_id="149349">https://247sports.com/Player/LeSean-McCoy-25234/</TWENTYFOURSEVENSPORTS></r>',
1192-
// [],
1193-
// function ($configurator)
1194-
// {
1195-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
1196-
// $configurator->MediaEmbed->add('twentyfoursevensports');
1197-
// }
1198-
// ],
1199-
// [
1200-
// 'https://247sports.com/Video/FFT-Week-12-QBRB-Start-or-Sit-1122-8838631/',
1201-
// '<r><TWENTYFOURSEVENSPORTS video_id="1378030659860">https://247sports.com/Video/FFT-Week-12-QBRB-Start-or-Sit-1122-8838631/</TWENTYFOURSEVENSPORTS></r>',
1202-
// [],
1203-
// function ($configurator)
1204-
// {
1205-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
1206-
// $configurator->MediaEmbed->add('twentyfoursevensports');
1207-
// }
1208-
// ],
1209-
[
1210-
'https://vk.com/video121599878_165723901',
1211-
'<r><VK hash="e06b0878046e1d32" oid="121599878" vid="165723901">https://vk.com/video121599878_165723901</VK></r>',
1212-
[],
1213-
function ($configurator)
1214-
{
1215-
if (isset($_SERVER['TRAVIS']))
1216-
{
1217-
$this->markTestSkipped('No VK test on Travis');
1218-
}
1219-
$configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
1220-
$configurator->MediaEmbed->add('vk');
1221-
}
1222-
],
12231069
[
12241070
'https://thoughtworks.wistia.com/medias/b6al55s35k',
12251071
'<r><WISTIA id="b6al55s35k">https://thoughtworks.wistia.com/medias/b6al55s35k</WISTIA></r>',
@@ -1276,46 +1122,6 @@ public function testScrapingRendering()
12761122
public static function getScrapingRenderingTests()
12771123
{
12781124
return [
1279-
// [
1280-
// 'http://proleter.bandcamp.com/album/curses-from-past-times-ep',
1281-
// '<span data-s9e-mediaembed="bandcamp" style="display:inline-block;width:100%;max-width:400px"><span style="display:block;overflow:hidden;position:relative;padding-bottom:100%"><iframe allowfullscreen="" loading="lazy" scrolling="no" style="border:0;height:100%;left:0;position:absolute;width:100%" src="//bandcamp.com/EmbeddedPlayer/size=large/minimal=true/album=1122163921"></iframe></span></span>',
1282-
// [],
1283-
// function ($configurator)
1284-
// {
1285-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
1286-
// $configurator->MediaEmbed->add('bandcamp');
1287-
// }
1288-
// ],
1289-
// [
1290-
// 'http://proleter.bandcamp.com/track/muhammad-ali',
1291-
// '<span data-s9e-mediaembed="bandcamp" style="display:inline-block;width:100%;max-width:400px"><span style="display:block;overflow:hidden;position:relative;padding-bottom:100%"><iframe allowfullscreen="" loading="lazy" scrolling="no" style="border:0;height:100%;left:0;position:absolute;width:100%" src="//bandcamp.com/EmbeddedPlayer/size=large/minimal=true/album=1122163921/t=7"></iframe></span></span>',
1292-
// [],
1293-
// function ($configurator)
1294-
// {
1295-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
1296-
// $configurator->MediaEmbed->add('bandcamp');
1297-
// }
1298-
// ],
1299-
// [
1300-
// 'http://therunons.bandcamp.com/track/still-feel',
1301-
// '<span data-s9e-mediaembed="bandcamp" style="display:inline-block;width:100%;max-width:400px"><span style="display:block;overflow:hidden;position:relative;padding-bottom:100%"><iframe allowfullscreen="" loading="lazy" scrolling="no" style="border:0;height:100%;left:0;position:absolute;width:100%" src="//bandcamp.com/EmbeddedPlayer/size=large/minimal=true/track=2146686782"></iframe></span></span>',
1302-
// [],
1303-
// function ($configurator)
1304-
// {
1305-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
1306-
// $configurator->MediaEmbed->add('bandcamp');
1307-
// }
1308-
// ],
1309-
// [
1310-
// 'http://www.comedycentral.com/video-clips/uu5qz4/key-and-peele-dueling-hats',
1311-
// '<span data-s9e-mediaembed="comedycentral" style="display:inline-block;width:100%;max-width:640px"><span style="display:block;overflow:hidden;position:relative;padding-bottom:56.25%"><iframe allowfullscreen="" loading="lazy" scrolling="no" src="//media.mtvnservices.com/embed/mgid:arc:video:comedycentral.com:bc275e2f-48e3-46d9-b095-0254381497ea" style="border:0;height:100%;left:0;position:absolute;width:100%"></iframe></span></span>',
1312-
// [],
1313-
// function ($configurator)
1314-
// {
1315-
// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache';
1316-
// $configurator->MediaEmbed->add('comedycentral');
1317-
// }
1318-
// ],
13191125
[
13201126
'https://www.gettyimages.com/detail/3232182',
13211127
'(<span data-s9e-mediaembed="getty" style="display:inline-block;width:100%;max-width:594px"><span style="display:block;overflow:hidden;position:relative;padding-bottom:67\\.1717171717172%"><iframe allowfullscreen="" loading="lazy" scrolling="no" src="//embed\\.gettyimages\\.com/embed/3232182\\?et=[-\w]{22}&amp;tld=com&amp;sig=[-\w]{43}=&amp;caption=false&amp;ver=1" style="border:0;height:100%;left:0;position:absolute;width:100%"></iframe></span></span>)',
@@ -2633,15 +2439,6 @@ function ($configurator)
26332439
$configurator->MediaEmbed->add('kickstarter');
26342440
}
26352441
],
2636-
// [
2637-
// 'https://www.liveleak.com/view?i=Clka1_1520190526',
2638-
// '<r><LIVELEAK id="Clka1_1520190526">https://www.liveleak.com/view?i=Clka1_1520190526</LIVELEAK></r>',
2639-
// [],
2640-
// function ($configurator)
2641-
// {
2642-
// $configurator->MediaEmbed->add('liveleak');
2643-
// }
2644-
// ],
26452442
[
26462443
'http://new.livestream.com/accounts/9999999999/events/9999999999',
26472444
'<r><LIVESTREAM account_id="9999999999" event_id="9999999999">http://new.livestream.com/accounts/9999999999/events/9999999999</LIVESTREAM></r>',
@@ -3556,15 +3353,6 @@ function ($configurator)
35563353
$configurator->MediaEmbed->add('tradingview');
35573354
}
35583355
],
3559-
// [
3560-
// 'http://www.traileraddict.com/tags/musical',
3561-
// '<t>http://www.traileraddict.com/tags/musical</t>',
3562-
// [],
3563-
// function ($configurator)
3564-
// {
3565-
// $configurator->MediaEmbed->add('traileraddict');
3566-
// }
3567-
// ],
35683356
[
35693357
'https://mydailyfreedom.com/tv/video/chick-fil-a-customers-sing-impromtu-lean-on-me-8213.html',
35703358
'<r><TRENDINGVIEWS id="8213">https://mydailyfreedom.com/tv/video/chick-fil-a-customers-sing-impromtu-lean-on-me-8213.html</TRENDINGVIEWS></r>',
@@ -4553,15 +4341,6 @@ function ($configurator)
45534341
$configurator->MediaEmbed->add('facebook');
45544342
}
45554343
],
4556-
// [
4557-
// 'https://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+1.3241202019156522+43+5+50%0AR+736+368+736+304+0+0+40+3.3+0+0+0.5%0A162+736+368+736+416+2+default-led+1+0+0+0.01%0At+688+432+736+432+0+1+-0.2745603107888651+0.7370392451696097+100%0At+688+464+736+464+0+1+0.548427436901697+0.7373314588213099+100%0As+672+416+672+432+0+0+false%0As+672+448+672+464+0+0+false%0Aw+672+448+656+448+0%0Aw+672+416+656+416+0%0Aw+656+416+656+368+0%0Aw+656+368+736+368+0%0Aw+656+448+624+448+0%0Aw+624+448+624+368+0%0Aw+624+368+656+368+0%0Aw+736+480+736+528+0%0Ag+736+528+736+560+0%0Ar+688+432+672+432+0+1000%0Ar+688+464+672+464+0+1000%0Aw+736+416+800+416+0%0A162+800+416+880+416+2+default-led+1+0+0+0.01%0Ag+880+416+912+416+0%0A',
4558-
// '<iframe data-s9e-mediaembed="falstad" allowfullscreen="" loading="lazy" scrolling="no" style="border:0;height:500px;max-height:90vh;width:100%" src="https://www.falstad.com/circuit/circuitjs.html?running=false&amp;cct=$+1+0.000005+1.3241202019156522+43+5+50%0AR+736+368+736+304+0+0+40+3.3+0+0+0.5%0A162+736+368+736+416+2+default-led+1+0+0+0.01%0At+688+432+736+432+0+1+-0.2745603107888651+0.7370392451696097+100%0At+688+464+736+464+0+1+0.548427436901697+0.7373314588213099+100%0As+672+416+672+432+0+0+false%0As+672+448+672+464+0+0+false%0Aw+672+448+656+448+0%0Aw+672+416+656+416+0%0Aw+656+416+656+368+0%0Aw+656+368+736+368+0%0Aw+656+448+624+448+0%0Aw+624+448+624+368+0%0Aw+624+368+656+368+0%0Aw+736+480+736+528+0%0Ag+736+528+736+560+0%0Ar+688+432+672+432+0+1000%0Ar+688+464+672+464+0+1000%0Aw+736+416+800+416+0%0A162+800+416+880+416+2+default-led+1+0+0+0.01%0Ag+880+416+912+416+0%0A"></iframe>',
4559-
// [],
4560-
// function ($configurator)
4561-
// {
4562-
// $configurator->MediaEmbed->add('falstad');
4563-
// }
4564-
// ],
45654344
[
45664345
'https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWK0BsCBMkAcYCcZMBmQyMAkBSCiyAKAHdxyAWLETN1qB97EL9Fk5s6jQcJCEszfiNoAnJullLwAdhRRJJBbwkd1mqmEiZd4lRbAatJs4qkyujw1sJnGL65pfpmVOgAXdiF2BB9pMKNwEABaQmgsSjVcNXQUXEhcZjBmGRhw6zAEQjUcUyxcQXA4HgNvELZ0cO4xUIaDZqNaYM6WsmUu22QUQlwUcXTBSlxcEVQsKTGwKRKliBNRVQaB9n9uACVVLhQnES19pADkBFoAc1V0NNUSfPvJSKflF1fuAA9wAhcOxyNYmsV+OBNABhMC0AGEawgwjaTToMCaGQYkDQ9DwkBJdgoYyQJDpFFYzQARThCMyYWBOSoU0h2KpeP8KLwgz46D8e2uJgA+l0hZAhUz0CLoAgxdAwGKRULhYRaJz2M8DL8-NdcCLworJdLZTBmIqpXrVZhgbsOnwGgFYPAwGxYgVrJRKGgkjkUNi4daPlibFYbI74KQ2Ak0lgUGpCJRY6NMJo4QB7JggU5Z-hZYFYRL+XAlAiYZhzMrIZ1aZRsFC0IA',
45674346
'<iframe data-s9e-mediaembed="falstad" allowfullscreen="" loading="lazy" scrolling="no" style="border:0;height:500px;max-height:90vh;width:100%" src="https://www.falstad.com/circuit/circuitjs.html?running=false&amp;ctz=CQAgjCAMB0l3BWK0BsCBMkAcYCcZMBmQyMAkBSCiyAKAHdxyAWLETN1qB97EL9Fk5s6jQcJCEszfiNoAnJullLwAdhRRJJBbwkd1mqmEiZd4lRbAatJs4qkyujw1sJnGL65pfpmVOgAXdiF2BB9pMKNwEABaQmgsSjVcNXQUXEhcZjBmGRhw6zAEQjUcUyxcQXA4HgNvELZ0cO4xUIaDZqNaYM6WsmUu22QUQlwUcXTBSlxcEVQsKTGwKRKliBNRVQaB9n9uACVVLhQnES19pADkBFoAc1V0NNUSfPvJSKflF1fuAA9wAhcOxyNYmsV+OBNABhMC0AGEawgwjaTToMCaGQYkDQ9DwkBJdgoYyQJDpFFYzQARThCMyYWBOSoU0h2KpeP8KLwgz46D8e2uJgA+l0hZAhUz0CLoAgxdAwGKRULhYRaJz2M8DL8-NdcCLworJdLZTBmIqpXrVZhgbsOnwGgFYPAwGxYgVrJRKGgkjkUNi4daPlibFYbI74KQ2Ak0lgUGpCJRY6NMJo4QB7JggU5Z-hZYFYRL+XAlAiYZhzMrIZ1aZRsFC0IA"></iframe>',

0 commit comments

Comments
 (0)