From 1bad379aedd0b555db420e3b9411d41a2d09168c Mon Sep 17 00:00:00 2001 From: Ibrahim Date: Wed, 4 Dec 2024 13:45:45 +0300 Subject: [PATCH] test: Fix Test Cases --- tests/webfiori/framework/test/PageTest.php | 2 +- tests/webfiori/framework/test/config/JsonDriverTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/webfiori/framework/test/PageTest.php b/tests/webfiori/framework/test/PageTest.php index f499416a..161aaf89 100644 --- a/tests/webfiori/framework/test/PageTest.php +++ b/tests/webfiori/framework/test/PageTest.php @@ -320,7 +320,7 @@ public function testDefaults00() { $this->assertEquals('ltr',$page->getWritingDir()); $this->assertNotNull($page->getTranslation()); $this->assertEquals('https://127.0.0.1/',$page->getCanonical()); - $this->assertEquals('http://127.0.0.1',$page->getBase()); + $this->assertEquals('https://127.0.0.1',$page->getBase()); } /** * @test diff --git a/tests/webfiori/framework/test/config/JsonDriverTest.php b/tests/webfiori/framework/test/config/JsonDriverTest.php index c85e8ddf..5055b33e 100644 --- a/tests/webfiori/framework/test/config/JsonDriverTest.php +++ b/tests/webfiori/framework/test/config/JsonDriverTest.php @@ -38,7 +38,7 @@ public function test00() { 'description' => 'Configure the verbosity of error messsages at run-time. This should be set to true in testing and false in production.' ], 'CLI_HTTP_HOST' => [ - 'value' => 'example.com', + "value" => "127.0.0.1", 'description' => 'Host name that will be used when runing the application as command line utility.' ], ],$driver->getEnvVars()); @@ -147,7 +147,7 @@ public function testAddEnvVar00() { 'description' => 'Configure the verbosity of error messsages at run-time. This should be set to true in testing and false in production.' ], "CLI_HTTP_HOST" => [ - "value" => "example.com", + "value" => "127.0.0.1", "description" => "Host name that will be used when runing the application as command line utility." ] ], $driver->getEnvVars());