From 8fd33f38f2bb32670ee7520b18333ec6e86f6a4f Mon Sep 17 00:00:00 2001 From: JoshyPHP Date: Fri, 26 Jan 2024 21:54:47 +0100 Subject: [PATCH] Removed disabled/flaky #tests --- docs/testdox.txt | 1 - tests/Plugins/MediaEmbed/ParserTest.php | 221 ------------------------ 2 files changed, 222 deletions(-) diff --git a/docs/testdox.txt b/docs/testdox.txt index 6cee26cad..1f56b872e 100644 --- a/docs/testdox.txt +++ b/docs/testdox.txt @@ -6841,7 +6841,6 @@ Parser (s9e\TextFormatter\Tests\Plugins\MediaEmbed\Parser) [x] Scraping tests with data set #52 [x] Scraping tests with data set #53 [x] Scraping tests with data set #54 - [x] Scraping tests with data set #55 [x] Scraping+rendering tests with data set #0 [x] Scraping+rendering tests with data set #1 [x] Scraping+rendering tests with data set #2 diff --git a/tests/Plugins/MediaEmbed/ParserTest.php b/tests/Plugins/MediaEmbed/ParserTest.php index ea4f044b4..1a21b6e71 100644 --- a/tests/Plugins/MediaEmbed/ParserTest.php +++ b/tests/Plugins/MediaEmbed/ParserTest.php @@ -503,16 +503,6 @@ function ($configurator) $configurator->MediaEmbed->add('acast'); } ], -// [ -// 'https://shows.acast.com/thefightingcock/s11e09-gil', -// 'https://shows.acast.com/thefightingcock/s11e09-gil', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('acast'); -// } -// ], [ 'https://play.acast.com/s/e3178447-8d7d-556e-bece-5d8f7c4dd539/f38da59a-9eb9-42f7-a0bf-a633ef813202?seek=125', 'https://play.acast.com/s/e3178447-8d7d-556e-bece-5d8f7c4dd539/f38da59a-9eb9-42f7-a0bf-a633ef813202?seek=125', @@ -553,46 +543,6 @@ function ($configurator) $configurator->MediaEmbed->add('audius'); } ], -// [ -// 'http://proleter.bandcamp.com/album/curses-from-past-times-ep', -// 'http://proleter.bandcamp.com/album/curses-from-past-times-ep', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('bandcamp'); -// } -// ], -// [ -// 'http://proleter.bandcamp.com/track/muhammad-ali', -// 'http://proleter.bandcamp.com/track/muhammad-ali', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('bandcamp'); -// } -// ], -// [ -// 'http://therunons.bandcamp.com/track/still-feel', -// 'http://therunons.bandcamp.com/track/still-feel', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('bandcamp'); -// } -// ], -// [ -// 'http://bleacherreport.com/articles/2415420-creating-a-starting-xi-of-the-most-overrated-players-in-world-football', -// 'http://bleacherreport.com/articles/2415420-creating-a-starting-xi-of-the-most-overrated-players-in-world-football', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('bleacherreport'); -// } -// ], [ 'https://decoding-the-gurus.captivate.fm/episode/sam-harris', 'https://decoding-the-gurus.captivate.fm/episode/sam-harris', @@ -603,16 +553,6 @@ function ($configurator) $configurator->MediaEmbed->add('captivate'); } ], -// [ -// 'http://www.cc.com/video-clips/uu5qz4/key-and-peele-dueling-hats', -// 'http://www.cc.com/video-clips/uu5qz4/key-and-peele-dueling-hats', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('comedycentral'); -// } -// ], [ 'https://www.cnbc.com/video/2019/06/05/carplay-android-auto-alexa-big-tech-gets-into-our-cars.html', 'https://www.cnbc.com/video/2019/06/05/carplay-android-auto-alexa-big-tech-gets-into-our-cars.html', @@ -633,26 +573,6 @@ function ($configurator) $configurator->MediaEmbed->add('dumpert'); } ], -// [ -// 'http://8tracks.com/lovinq/headphones-in-world-out', -// 'http://8tracks.com/lovinq/headphones-in-world-out', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('eighttracks'); -// } -// ], -// [ -// 'https://fb.watch/3zYsXdnxjf/', -// 'https://fb.watch/3zYsXdnxjf/', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('facebook'); -// } -// ], [ // https://about.fb.com/news/2022/09/deterring-scraping-by-protecting-facebook-identifiers/ // https://news.ycombinator.com/item?id=32117489 @@ -837,26 +757,6 @@ function ($configurator) $configurator->MediaEmbed->add('giphy'); } ], -// [ -// 'http://www.hudl.com/v/CVmja', -// 'http://www.hudl.com/v/CVmja', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('hudl'); -// } -// ], -// [ -// 'http://www.hulu.com/watch/484180', -// 'http://www.hulu.com/watch/484180', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('hulu'); -// } -// ], [ 'http://www.imdb.com/video/epk/vi387296537/', 'http://www.imdb.com/video/epk/vi387296537/', @@ -998,16 +898,6 @@ function ($configurator) $configurator->MediaEmbed->add('npr'); } ], -// [ -// 'http://n.pr/1Qky1m5', -// 'http://n.pr/1Qky1m5', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('npr'); -// } -// ], [ 'https://odysee.com/@ozgoals:a/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', @@ -1042,16 +932,6 @@ function ($configurator) $configurator->MediaEmbed->add('slideshare'); } ], -// [ -// 'https://soundcloud.com/topdawgent/i-1/s-GT9Cd', -// 'https://soundcloud.com/topdawgent/i-1/s-GT9Cd', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('soundcloud'); -// } -// ], [ 'https://soundcloud.com/andrewbird/three-white-horses', 'https://soundcloud.com/andrewbird/three-white-horses', @@ -1186,40 +1066,6 @@ function ($configurator) $configurator->MediaEmbed->add('tumblr'); } ], -// [ -// 'https://247sports.com/Player/LeSean-McCoy-25234/', -// 'https://247sports.com/Player/LeSean-McCoy-25234/', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('twentyfoursevensports'); -// } -// ], -// [ -// 'https://247sports.com/Video/FFT-Week-12-QBRB-Start-or-Sit-1122-8838631/', -// 'https://247sports.com/Video/FFT-Week-12-QBRB-Start-or-Sit-1122-8838631/', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('twentyfoursevensports'); -// } -// ], - [ - 'https://vk.com/video121599878_165723901', - 'https://vk.com/video121599878_165723901', - [], - function ($configurator) - { - if (isset($_SERVER['TRAVIS'])) - { - $this->markTestSkipped('No VK test on Travis'); - } - $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; - $configurator->MediaEmbed->add('vk'); - } - ], [ 'https://thoughtworks.wistia.com/medias/b6al55s35k', 'https://thoughtworks.wistia.com/medias/b6al55s35k', @@ -1276,46 +1122,6 @@ public function testScrapingRendering() public static function getScrapingRenderingTests() { return [ -// [ -// 'http://proleter.bandcamp.com/album/curses-from-past-times-ep', -// '', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('bandcamp'); -// } -// ], -// [ -// 'http://proleter.bandcamp.com/track/muhammad-ali', -// '', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('bandcamp'); -// } -// ], -// [ -// 'http://therunons.bandcamp.com/track/still-feel', -// '', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('bandcamp'); -// } -// ], -// [ -// 'http://www.comedycentral.com/video-clips/uu5qz4/key-and-peele-dueling-hats', -// '', -// [], -// function ($configurator) -// { -// $configurator->registeredVars['cacheDir'] = __DIR__ . '/../../.cache'; -// $configurator->MediaEmbed->add('comedycentral'); -// } -// ], [ 'https://www.gettyimages.com/detail/3232182', '()', @@ -2633,15 +2439,6 @@ function ($configurator) $configurator->MediaEmbed->add('kickstarter'); } ], -// [ -// 'https://www.liveleak.com/view?i=Clka1_1520190526', -// 'https://www.liveleak.com/view?i=Clka1_1520190526', -// [], -// function ($configurator) -// { -// $configurator->MediaEmbed->add('liveleak'); -// } -// ], [ 'http://new.livestream.com/accounts/9999999999/events/9999999999', 'http://new.livestream.com/accounts/9999999999/events/9999999999', @@ -3556,15 +3353,6 @@ function ($configurator) $configurator->MediaEmbed->add('tradingview'); } ], -// [ -// 'http://www.traileraddict.com/tags/musical', -// 'http://www.traileraddict.com/tags/musical', -// [], -// function ($configurator) -// { -// $configurator->MediaEmbed->add('traileraddict'); -// } -// ], [ 'https://mydailyfreedom.com/tv/video/chick-fil-a-customers-sing-impromtu-lean-on-me-8213.html', 'https://mydailyfreedom.com/tv/video/chick-fil-a-customers-sing-impromtu-lean-on-me-8213.html', @@ -4553,15 +4341,6 @@ function ($configurator) $configurator->MediaEmbed->add('facebook'); } ], -// [ -// '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', -// '', -// [], -// function ($configurator) -// { -// $configurator->MediaEmbed->add('falstad'); -// } -// ], [ 'https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWK0BsCBMkAcYCcZMBmQyMAkBSCiyAKAHdxyAWLETN1qB97EL9Fk5s6jQcJCEszfiNoAnJullLwAdhRRJJBbwkd1mqmEiZd4lRbAatJs4qkyujw1sJnGL65pfpmVOgAXdiF2BB9pMKNwEABaQmgsSjVcNXQUXEhcZjBmGRhw6zAEQjUcUyxcQXA4HgNvELZ0cO4xUIaDZqNaYM6WsmUu22QUQlwUcXTBSlxcEVQsKTGwKRKliBNRVQaB9n9uACVVLhQnES19pADkBFoAc1V0NNUSfPvJSKflF1fuAA9wAhcOxyNYmsV+OBNABhMC0AGEawgwjaTToMCaGQYkDQ9DwkBJdgoYyQJDpFFYzQARThCMyYWBOSoU0h2KpeP8KLwgz46D8e2uJgA+l0hZAhUz0CLoAgxdAwGKRULhYRaJz2M8DL8-NdcCLworJdLZTBmIqpXrVZhgbsOnwGgFYPAwGxYgVrJRKGgkjkUNi4daPlibFYbI74KQ2Ak0lgUGpCJRY6NMJo4QB7JggU5Z-hZYFYRL+XAlAiYZhzMrIZ1aZRsFC0IA', '',