From d0b9e249b468638181585a1ab54990d7afab19e8 Mon Sep 17 00:00:00 2001 From: Matt Porritt Date: Sun, 7 Oct 2018 23:02:12 +0000 Subject: [PATCH 1/2] Skip test based on outside resources --- tests/filter_test.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/filter_test.php b/tests/filter_test.php index fd09a67..e513f20 100644 --- a/tests/filter_test.php +++ b/tests/filter_test.php @@ -91,6 +91,9 @@ protected function setUp(): void { */ public function test_filter() { $this->resetAfterTest(true); + // This test is marked as skipped because, writing tests that rely + // on talking to the Internet are a very, very bad idea. + $this->markTestSkipped(); $curl = new curl(); try { From de7f4c57552d7548422eb74b2da90b8ad8944dce Mon Sep 17 00:00:00 2001 From: Nathan Nguyen Date: Wed, 7 Oct 2020 10:12:44 +1100 Subject: [PATCH 2/2] Skip test as the video link is not available --- tests/oembed_test.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/oembed_test.php b/tests/oembed_test.php index 0d2dcca..0015585 100644 --- a/tests/oembed_test.php +++ b/tests/oembed_test.php @@ -92,6 +92,7 @@ public function test_providers() { * TODO - have a local oembed service with test fixtures for performing test. */ public function test_embed_html() { + $this->markTestSkipped("The youtube link is unavailabe"); $this->resetAfterTest(true); set_config('lazyload', 0, 'filter_oembed'); $this->setAdminUser(); @@ -107,6 +108,7 @@ public function test_embed_html() { * TODO - have a local oembed service with test fixtures for performing test. */ public function test_preloader_html() { + $this->markTestSkipped("The youtube link is unavailabe"); $this->resetAfterTest(true); set_config('lazyload', 1, 'filter_oembed'); $this->setAdminUser();