From 04a2c93096b1f4071b17f638fc7d37c0ddb2079f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 4 Apr 2019 19:57:31 -0600 Subject: [PATCH] Add CostarTest --- tests/Unit/CostarTest.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/Unit/CostarTest.php diff --git a/tests/Unit/CostarTest.php b/tests/Unit/CostarTest.php new file mode 100644 index 000000000..3e4961b43 --- /dev/null +++ b/tests/Unit/CostarTest.php @@ -0,0 +1,24 @@ +assertTrue(in_array('example.net', $domains)); + + $blockedDomain = 'https://example.org/user/replyGuy'; + $this->assertFalse(Helpers::validateUrl($blockedDomain)); + + $unblockedDomain = 'https://pixelfed.org/user/pixelfed'; + $this->assertEquals(Helpers::validateUrl($unblockedDomain), $unblockedDomain); + } +}