From af093f1d5fd1e67b9fcde6b7a6212716d96c544a Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Mon, 24 Feb 2020 17:16:14 +0200 Subject: [PATCH] Fixed CNAME tests --- tests/unit/Network/Validators/CNAMETest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/unit/Network/Validators/CNAMETest.php b/tests/unit/Network/Validators/CNAMETest.php index 810725197..b57de24bd 100644 --- a/tests/unit/Network/Validators/CNAMETest.php +++ b/tests/unit/Network/Validators/CNAMETest.php @@ -14,7 +14,7 @@ class CNAMETest extends TestCase public function setUp() { - $this->object = new CNAME('new.appwrite.io'); + $this->object = new CNAME('appwrite.io'); } public function tearDown() @@ -26,9 +26,9 @@ 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('cert1.tests.appwrite.io'), true); - $this->assertEquals($this->object->isValid('cert2.tests.appwrite.io'), true); - $this->assertEquals($this->object->isValid('cert1.tests.appwrite.com'), false); - $this->assertEquals($this->object->isValid('cert1.tests.appwrite.com'), false); + $this->assertEquals($this->object->isValid('test1.appwrite.io'), true); + $this->assertEquals($this->object->isValid('test1.appwrite.io'), true); + $this->assertEquals($this->object->isValid('test1.appwrite.com'), false); + $this->assertEquals($this->object->isValid('test1.appwrite.com'), false); } } \ No newline at end of file