From 925256c81f3be3678ced527fe32f5ae59418ad00 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 27 Oct 2023 22:10:28 +0300 Subject: unify test class naming --- tests/SelfUrlPathTest.php | 106 ---------------------------------------------- 1 file changed, 106 deletions(-) delete mode 100644 tests/SelfUrlPathTest.php (limited to 'tests/SelfUrlPathTest.php') diff --git a/tests/SelfUrlPathTest.php b/tests/SelfUrlPathTest.php deleted file mode 100644 index b8892f84b..000000000 --- a/tests/SelfUrlPathTest.php +++ /dev/null @@ -1,106 +0,0 @@ -assertEquals( - 'http://example.com/tt-rss', - Config::get_self_url(true) - ); - - } - - public function test_b(): void { - $_SERVER = []; - - $_SERVER["HTTP_X_FORWARDED_PROTO"] = "https"; - $_SERVER["HTTP_HOST"] = "example.com"; - $_SERVER["REQUEST_URI"] = "/api/"; - - $this->assertEquals( - 'https://example.com', - Config::get_self_url(true) - ); - } - - public function test_c(): void { - $_SERVER = []; - - $_SERVER["HTTP_X_FORWARDED_PROTO"] = "https"; - $_SERVER["HTTP_HOST"] = "example.com"; - $_SERVER["REQUEST_URI"] = "/api/index.php"; - - $this->assertEquals( - 'https://example.com', - Config::get_self_url(true) - ); - } - - public function test_d(): void { - $_SERVER = []; - - $_SERVER["HTTP_X_FORWARDED_PROTO"] = "https"; - $_SERVER["HTTP_HOST"] = "example.com"; - $_SERVER["REQUEST_URI"] = "/api//"; - - $this->assertEquals( - 'https://example.com', - Config::get_self_url(true) - ); - } - - public function test_e(): void { - $_SERVER = []; - - $_SERVER["HTTP_X_FORWARDED_PROTO"] = "https"; - $_SERVER["HTTP_HOST"] = "example.com"; - $_SERVER["REQUEST_URI"] = "/"; - - $this->assertEquals( - 'https://example.com', - Config::get_self_url(true) - ); - } - - public function test_f(): void { - $_SERVER = []; - - $_SERVER["HTTP_HOST"] = "example.com"; - $_SERVER["REQUEST_URI"] = "/tt-rss/index.php"; - - $this->assertEquals( - 'http://example.com/tt-rss', - Config::get_self_url(true) - ); - } - - public function test_g(): void { - $_SERVER = []; - - $_SERVER["HTTP_HOST"] = "example.com"; - $_SERVER["REQUEST_URI"] = "/tt-rss/"; - - $this->assertEquals( - 'http://example.com/tt-rss', - Config::get_self_url(true) - ); - } - - public function test_h(): void { - $_SERVER = []; - - $_SERVER["HTTP_HOST"] = "example.com"; - $_SERVER["REQUEST_URI"] = "/tt-rss"; - - $this->assertEquals( - 'http://example.com/tt-rss', - Config::get_self_url(true) - ); - } -} -- cgit v1.2.3-54-g00ecf