From 1602c06285db5a5c60be07f4350bef28ca73a1a9 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Mon, 30 May 2022 14:45:13 +0000 Subject: [PATCH 1/2] Update CNAME test domains --- tests/unit/Network/Validators/CNAMETest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/Network/Validators/CNAMETest.php b/tests/unit/Network/Validators/CNAMETest.php index d08656d84..3ddb6991e 100644 --- a/tests/unit/Network/Validators/CNAMETest.php +++ b/tests/unit/Network/Validators/CNAMETest.php @@ -26,8 +26,8 @@ class CNAMETest extends TestCase $this->assertEquals($this->object->isValid(''), false); $this->assertEquals($this->object->isValid(null), false); $this->assertEquals($this->object->isValid(false), false); - $this->assertEquals($this->object->isValid('test1.appwrite.io'), true); - $this->assertEquals($this->object->isValid('test1.appwrite.io'), true); + $this->assertEquals($this->object->isValid('cname-unit-test.appwrite.org'), true); + $this->assertEquals($this->object->isValid('cname-unit-test.appwrite.org'), true); $this->assertEquals($this->object->isValid('test1.appwrite.org'), false); $this->assertEquals($this->object->isValid('test1.appwrite.org'), false); } From 3ae1f63679c20317409c31291a39a520eb4d20a4 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Mon, 30 May 2022 14:50:12 +0000 Subject: [PATCH 2/2] Remove duplicate tests --- tests/unit/Network/Validators/CNAMETest.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/unit/Network/Validators/CNAMETest.php b/tests/unit/Network/Validators/CNAMETest.php index 3ddb6991e..5aa7a69db 100644 --- a/tests/unit/Network/Validators/CNAMETest.php +++ b/tests/unit/Network/Validators/CNAMETest.php @@ -27,8 +27,6 @@ class CNAMETest extends TestCase $this->assertEquals($this->object->isValid(null), false); $this->assertEquals($this->object->isValid(false), false); $this->assertEquals($this->object->isValid('cname-unit-test.appwrite.org'), true); - $this->assertEquals($this->object->isValid('cname-unit-test.appwrite.org'), true); - $this->assertEquals($this->object->isValid('test1.appwrite.org'), false); $this->assertEquals($this->object->isValid('test1.appwrite.org'), false); } }