From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Thu, 16 Jun 2022 17:17:51 +0200
Subject: Drop tests relying on non free material

---
 tests/PagesTest.php | 153 ----------------------------------------------------
 1 file changed, 153 deletions(-)

diff --git a/tests/PagesTest.php b/tests/PagesTest.php
index 3b09b94..f9b2936 100644
--- a/tests/PagesTest.php
+++ b/tests/PagesTest.php
@@ -57,171 +57,18 @@ class PagesTest extends PagesTestCase
         ];
     }
 
-    /**
-     * @dataProvider urlDataProvider
-     */
-    public function testPages(string $url)
-    {
-        $this->assertEmbed($url);
-    }
-
-    public function testImageFile()
-    {
-        $this->assertEmbed('https://cdn2.thecatapi.com/images/cjd.jpg');
-    }
-
-    public function testAudioFile()
-    {
-        $this->assertEmbed('https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3');
-    }
-
-    public function testVideoFile()
-    {
-        $this->assertEmbed('http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4');
-    }
-
-    public function testSnipplr()
-    {
-        $this->assertEmbed('http://snipplr.com/view/72914/better-html-5-basic-starter-template');
-    }
-
-    public function testSassmeister()
-    {
-        $this->assertEmbed('http://sassmeister.com/gist/1122e441f0434ec6eb2a');
-    }
-
-    public function testImageShack()
-    {
-        $this->assertEmbed('https://imageshack.com/i/ip7wO0v7j');
-    }
-
-    public function testIdeone()
-    {
-        $this->assertEmbed('https://ideone.com/Whjntg');
-    }
-
-    public function testCadenaSer()
-    {
-        $this->assertEmbed('http://play.cadenaser.com/audio/001RD010000004275766/');
-    }
-
-    public function testSlides()
-    {
-        $this->assertEmbed('http://slides.com/alexwalker/responsive-svg/');
-    }
-
     public function testArchiveOrg()
     {
-        $this->assertEmbed('https://archive.org/details/dn2015-0220_vid');
         $this->assertEmbed('https://archive.org/details/librivoxaudio');
     }
 
-    public function testInstagram()
-    {
-        if (getenv('INSTAGRAM_TOKEN') ?? false) {
-            $this->assertEmbed('http://instagram.com/p/ySl7G9tO_q/');
-        } else {
-            self::markTestSkipped('Environment variable `INSTAGRAM_TOKEN` must be provided to test instagram. See https://developers.facebook.com/docs/instagram/oembed/');
-        }
-    }
-
-    public function testMeetup()
-    {
-        $this->assertEmbed('https://www.meetup.com/es/GPUL-Labs/events/248885422/');
-    }
-
-    public function testPinterest()
-    {
-        $this->assertEmbed('https://www.pinterest.com/pin/106890191127977979/');
-    }
-
     public function testWikipedia()
     {
         $this->assertEmbed('https://en.wikipedia.org/wiki/Albert_Einstein');
     }
 
-    public function testVimeo()
-    {
-        $this->assertEmbed('https://vimeo.com/235352744');
-    }
-
     public function testWordPress()
     {
         $this->assertEmbed('http://wordpress.tv/2013/09/06/dave-ross-optimize-image-files-like-a-pro/');
     }
-
-    public function testFlickr()
-    {
-        $this->assertEmbed('https://www.flickr.com/photos/desescribir/sets/72157650686499888');
-        $this->assertEmbed('https://www.flickr.com/photos/desescribir');
-    }
-
-    public function testFacebook()
-    {
-        if (getenv('FACEBOOK_TOKEN') ?? false) {
-            $this->assertEmbed('https://www.facebook.com/permalink.php?story_fbid=827163017327807&id=149460691764713');
-            $this->assertEmbed('https://www.facebook.com/acolono/videos/10154107990797381/');
-        } else {
-            self::markTestSkipped('Environment variable `FACEBOOK_TOKEN` must be provided to test facebook. See https://developers.facebook.com/docs/plugins/oembed');
-        }
-    }
-
-    public function testGithub()
-    {
-        $this->assertEmbed('https://gist.github.com/oscarotero/7749998');
-        $this->assertEmbed('https://github.com/benbalter/dc-wifi-social/blob/master/bars.geojson');
-        $this->assertEmbed('https://github.com/skalnik/secret-bear-clip/blob/master/stl/clip.stl');
-        $this->assertEmbed('https://github.com/oscarotero/Embed/blob/master/composer.json');
-    }
-
-    public function testGoogle()
-    {
-        $this->assertEmbed('https://www.google.es/maps/place/Tordoia,+A+Coru%C3%B1a/@43.0871207,-8.5710004,12z/data=!3m1!4b1!4m2!3m1!1s0xd2ef4006f1ef489:0x404f58273ca55a0');
-        $this->assertEmbed('https://drive.google.com/file/d/0B2rwN8wAbVSWbmFJdUdnV2VSTTg/view');
-        $this->assertEmbed('https://calendar.google.com/calendar/embed?src=spain__es%40holiday.calendar.google.com&ctz=Europe/Madrid');
-    }
-
-    public function testSoundCloud()
-    {
-        $this->assertEmbed('https://soundcloud.com/zedsdead/zeds-dead-twin-shadow-lost-you-feat-dangelo-lacy');
-        $this->assertEmbed('https://soundcloud.com/bruceneilmusic');
-        $this->assertEmbed('https://soundcloud.com/ididthat-1/lowe-ct-cape-times-world-cup');
-    }
-
-    public function testSpotify()
-    {
-        $this->assertEmbed('https://open.spotify.com/album/7s66wU1XJ2NsUuWM2NKiUV');
-        $this->assertEmbed('https://play.spotify.com/album/7s66wU1XJ2NsUuWM2NKiUV');
-    }
-
-    public function testTwitch()
-    {
-        $this->assertEmbed('https://www.twitch.tv/videos/72749628');
-        $this->assertEmbed('https://www.twitch.tv/videos/106400740');
-        $this->assertEmbed('https://www.twitch.tv/twit');
-    }
-
-    public function testTwitter()
-    {
-        $this->assertEmbed('https://twitter.com/pepephone/status/436461658601713664');
-        $this->assertEmbed('https://t.co/4DK3Jc2BTt');
-    }
-
-    public function testTikTok()
-    {
-        $this->assertEmbed('https://www.tiktok.com/@a3noticias/video/6806030056956251397');
-    }
-
-    public function testYoutube()
-    {
-        $this->assertEmbed('http://www.youtube.com/watch?v=eiHXASgRTcA');
-        $this->assertEmbed('http://youtu.be/eiHXASgRTcA');
-        $this->assertEmbed('https://www.youtube.com/playlist?list=PL4qTakKkQATKOyZPJG_cAMnRtF7fAIdST');
-        $this->assertEmbed('https://www.youtube.com/channel/UCuZeHD5SGecQomz2pVDHGzg');
-    }
-
-    public function testBBCNews()
-    {
-        $this->assertEmbed('https://www.bbc.co.uk/news/uk-54222286');
-    }
 }
