File: 0001-Drop-tests-relying-on-non-free-material.patch

package info (click to toggle)
php-embed 4.4.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,728 kB
  • sloc: php: 40,309; makefile: 23
file content (184 lines) | stat: -rw-r--r-- 6,367 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
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');
-    }
 }