From 237c65c254beea6a018161d7663a9510fb168d95 Mon Sep 17 00:00:00 2001 From: Matt Porritt Date: Sun, 7 Oct 2018 23:02:12 +0000 Subject: [PATCH 1/2] Skipping test based on external resources --- tests/filter_test.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/filter_test.php b/tests/filter_test.php index 5b83ffa..0db2703 100644 --- a/tests/filter_test.php +++ b/tests/filter_test.php @@ -91,6 +91,9 @@ protected function setUp() { */ 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 292226471d0245000554c700d4fc9c08d9a5df2a 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 67cf9e2..160cfbe 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();