aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-05-18 20:58:09 +0200
committerHarald Eilertsen <haraldei@anduin.net>2024-06-13 13:34:20 +0200
commitd187c0025af98a9db27217569a92ac997c512f77 (patch)
tree789cf1c60d73e742185b004aba29927c7c3b1388
parent4e9432263adf555b30d49dfd9a731f86b82ad02b (diff)
downloadvolse-hubzilla-d187c0025af98a9db27217569a92ac997c512f77.tar.gz
volse-hubzilla-d187c0025af98a9db27217569a92ac997c512f77.tar.bz2
volse-hubzilla-d187c0025af98a9db27217569a92ac997c512f77.zip
tests: Configure system.baseurl for tests.
-rw-r--r--tests/unit/includes/NetworkTest.php8
-rw-r--r--tests/unit/includes/dba/_files/config.yml4
2 files changed, 5 insertions, 7 deletions
diff --git a/tests/unit/includes/NetworkTest.php b/tests/unit/includes/NetworkTest.php
index 5bf175953..a41075f25 100644
--- a/tests/unit/includes/NetworkTest.php
+++ b/tests/unit/includes/NetworkTest.php
@@ -7,12 +7,6 @@
class NetworkTest extends Zotlabs\Tests\Unit\UnitTestCase {
- public function setUp() : void {
- parent::setUp();
-
- \App::set_baseurl("https://mytest.org");
- }
-
/**
* @dataProvider localUrlTestProvider
*/
@@ -23,7 +17,7 @@ class NetworkTest extends Zotlabs\Tests\Unit\UnitTestCase {
public static function localUrlTestProvider() : array {
return [
[ '/some/path', true ],
- [ 'https://mytest.org/some/path', true ],
+ [ 'https://hubzilla.test/some/path', true ],
[ 'https://other.site/some/path', false ],
];
}
diff --git a/tests/unit/includes/dba/_files/config.yml b/tests/unit/includes/dba/_files/config.yml
index e93486857..ac3c8acb0 100644
--- a/tests/unit/includes/dba/_files/config.yml
+++ b/tests/unit/includes/dba/_files/config.yml
@@ -2,6 +2,10 @@
config:
-
cat: system
+ k: baseurl
+ v: https://hubzilla.test
+ -
+ cat: system
k: do_not_check_dns
v: true
-