diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-07-23 12:24:42 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-07-23 12:24:42 +0200 |
commit | 7afb01e4889761f4b420b37d626a8c96f41434fa (patch) | |
tree | 8a620956e3a1904dd4f8bafd1d15b8b997a35f87 /tests/unit | |
parent | 3708896a658bb7ae8f61377bc85da0bc898a721e (diff) | |
download | volse-hubzilla-7afb01e4889761f4b420b37d626a8c96f41434fa.tar.gz volse-hubzilla-7afb01e4889761f4b420b37d626a8c96f41434fa.tar.bz2 volse-hubzilla-7afb01e4889761f4b420b37d626a8c96f41434fa.zip |
Redirect help to about page when locale but no topic specified in URL
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/Module/HelpTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/Module/HelpTest.php b/tests/unit/Module/HelpTest.php index c345d5e52..353a40def 100644 --- a/tests/unit/Module/HelpTest.php +++ b/tests/unit/Module/HelpTest.php @@ -104,6 +104,11 @@ class HelpTest extends \Zotlabs\Tests\Unit\Module\TestCase { $this->get('help'); } + public function test_getting_locale_with_no_topic_should_redirect_to_about_page_for_locale(): void { + $this->expectRedirectTo('help/de/about/about'); + $this->get('help/de'); + } + public function test_find_help_file_returns_first_match(): void { // Stub file exists, to always return true $fe_stub = $this->getFunctionMock('Zotlabs\Lib\Traits', 'file_exists'); |